22.10.2017, 15:45
PHP код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
for(new i; i < 24; i++)
{
if(oldstate == PLAYER_STATE_ONFOOT && IsPlayerInVehicle(playerid, specialcar[i]) && newstate == PLAYER_STATE_DRIVER)
{
SendClientMessage(playerid, -1, "Vocк entrou em um carro especial");
}
}
return 1;
}