15.11.2011, 17:38
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
if(GetPlayerVehicleID(playerid) >= 1 && GetPlayerVehicleID(playerid) <= 18 && Team[playerid] != TEAM_CT)
{
RemovePlayerFromVehicle(playerid);
return SendClientMessage(playerid, COLOR_POLICIA, "Vocк Nгo й um Policial , Para utilizar o veiculo !!");
}
else if(GetPlayerVehicleID(playerid) >= 19 && GetPlayerVehicleID(playerid) <= 28 && Team[playerid] != TEAM_T)
{
RemovePlayerFromVehicle(playerid);
return SendClientMessage(playerid, COLOR_TERROR, "Vocк Nгo й um Terrorista , Para utilizar o veiculo !!");
}
}
return 1;
}