03.02.2019, 19:08
PHP код:
// NEWS
new Trancado[MAX_PLAYERS];
// PUBLIC
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
if(Trancado[playerid] == 1)
{
ClearAnimations(playerid);
SendClientMessage(playerid, -1, "| INFO | Veнculo Trancado!");
}
else
{
// ...
}
}
return 1;
}
// CMD
CMD:trancar(playerid)
{
Trancado[playerid] = 1;
return 1;
}