11.11.2011, 16:13
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldastate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
if(GetPlayerVehicleID(playerid) >= 1 && GetPlayerVehicleID(playerid) <= 18 && !VariavelQueDefineQueEleЙPolicial[playerid])
{
RemovePlayerFromVehicle(playerid);
return SendClientMessage(playerid, -1, "Voce nгo й policial!");
}
else if(GetPlayerVehicleID(playerid) >= 19 && GetPlayerVehicleID(playerid) <= 28 && !VariavelQueDefineQueEleЙTerrorista[playerid])
{
RemovePlayerFromVehicle(playerid);
return SendClientMessage(playerid, -1, "Voce nгo й terrorista!");
}
}
}
LEMBRE-SE DE TROCAR AS VARIAVEIS QUE DEFINEM C ELE Й POLICIAL OU TERRORISTA!!!!!!!!!!