Saltar al contenido
  • Global

    Global

    Chatroom Rules

    • NO SE DA SOPORTE EN CHATBOX
    • NO SPAM
    • NO FLOOD

Publicaciones recomendadas

  • Usuario
Publicado

hola hoy les traigo el comando /ir

 

	if ( strcmp( cmd, "/ir", true ) == 0 )
{
	new tmp[256];
	tmp = strtok( cmdtext, idx );

	if ( !strlen( tmp ) ) { return 1; }

	new Float:X, Float:Y, Float:Z;

	if ( GetPlayerVehicleID( playerid ) )
	{
		GetPlayerPos( strval(tmp), X, Y, Z );
		SetVehiclePos( GetPlayerVehicleID(playerid), X+2, Y+2, Z );
	} else {
		GetPlayerPos( strval(tmp), X, Y, Z );
		SetPlayerPos( playerid, X+2, Y+2, Z );
	}

	return 1;
}

 

y ahi van al server y pongan /ir el id del jugador si ponen solo /ir no dice nada pero si ponen /ir 1 por ejemplo van al player

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Invitado
Responder a este tema...

×   Pegar como texto enriquecido.   Pegar como texto sin formato

  Only 75 emoji are allowed.

×   Tu enlace se ha incrustado automáticamente..   Mostrar como un enlace en su lugar

×   Se ha restaurado el contenido anterior.   Limpiar editor

×   No se pueden pegar imágenes directamente. Carga o inserta imágenes desde la URL.

  • Explorando recientemente   0 miembros

    • No hay usuarios registrados viendo esta página.
×
×
  • Crear nuevo...