|
CMD:apresar(playerid, params[]) { static apresado; if(Equipo[playerid] == Ladrones) return SendClientMessage(playerid, -1, "No Eres Policia Para Apresar"); if (sscanf(params, "u", apresado)) return SendClientMessage(playerid, -1, "/apresar [id]"); if (apresado == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "id invalida o jugador no conectado."); PutPlayerInVehicle(apresado, 596, 3); SetPlayerCheckpoint(playerid, Checkpoint1, 3.0); onCheck[playerid] = true; SendClientMessage(playerid, -1, "Lleba El Delicuente A Pricion Rapidamente"); return 1; } |
|
Tengo Un Problema En El Comando Apresar Noce Porque No Entra Al Jugador Al Vehiculo y El Comando Esta Correcta mente |
CMD:apresar(playerid, params[])
{
static
apresado;
if(Equipo[playerid] == Policia)
return SendClientMessage(playerid, -1, "No Eres Policia Para Apresar");
if (sscanf(params, "u", apresado))
return SendClientMessage(playerid, -1, "/apresar [id]");
if (apresado == INVALID_PLAYER_ID)
return SendClientMessage(playerid, -1, "id invalida o jugador no conectado.");
PutPlayerInVehicle(apresado, 596, 3);
SetPlayerCheckpoint(playerid, Checkpoint1, 3.0);
onCheck[playerid] = true;
SendClientMessage(playerid, -1, "Lleba El Delicuente A Pricion Rapidamente");
return 1;
}
if(Equipo[playerid] == Ladrones) return SendClientMessage(playerid,-1,"*No Eres Policia Para Apresar");
PutPlayerInVehicle(apresado, 596, 3);
if (apresado == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "id invalida o jugador no conectado.");
if (apresado == 65535) return SendClientMessage(playerid, -1, "id invalida o jugador no conectado.");
|
Код:
if(Equipo[playerid] == Ladrones) return SendClientMessage(playerid,-1,"*No Eres Policia Para Apresar"); A menos que el mundo este tan actualizado que ahora los ladrones meten a prisiуn a policias xd. |
|
GetPlayerVehicleID ( playerid ) ; |
|
Esa funcion hace que el vehiculo use la id del jugador que lo conduce
|