29.04.2018, 19:29
Acho que entendi o quis dizer:
й algo assim?
OnPlayerStateChange...
й algo assim?
PHP Code:
CMD:pegarchave(playerid)
{
pInfo[playerid][pChave] = 1;
return 1;
}
PHP Code:
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(pInfo[playerid][pChave] == 0)
{
RemovePlayerFromVehicle(playerid);
TogglePlayerControlable(playerid, 1);
SendClientMessage(playerid, -1, "Vocк nгo tem a chave do carro");
}
else SendClientMessage(playerid, -1, "Vocк tem a chave do carro");
}