29.04.2018, 13:20
PHP Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(*player nгo tem chave)
{
RemovePlayerFromVehicle(playerid);
TogglePlayerControlable(playerid, 1);
SendClientMessage(playerid, -1, "Vocк nгo tem a chave do carro");
}
else SendClientMessage(playerid, -1, "Voce tem a chave do carro");
}
}