01.10.2013, 20:51
perdon
pawn Код:
// el topo del game mode
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
//OnPlayerEnterVehicle
for(new c = 0; c < sizeof(carropolicia); c++)
{
new stat = GetPlayerState(playerid);
if(stat == PLAYER_STATE_DRIVER)
{
if(Informacion[playerid][pLider] != 1 || Informacion[playerid][pMiembro] != 1)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GRAD2, "Usted no es policia.");
}
}
}