01.10.2013, 20:09
assi
pawn Код:
new carropolicia[2];
// OnGameModeInit
carropolicia[0] = AddStaticVehicleExP(596,2202.9690,21.4333,26.2109,89.1932,0,1,TIEMPO_SPAWN); // Auto Patrulla 1
carropolicia[1] = AddStaticVehicleExP(596,2203.2393,18.6386,26.2104,87.9438,0,1,TIEMPO_SPAWN); // Auto Patrulla 2
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
new vid = GetPlayerVehicleID(playerid);
if(vid == carropolicia && Informacion[playerid][pLider] != 1 || Informacion[playerid][pMiembro] != 1)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GRAD2, "Usted no es policia.");
}
}
return 1;
}