24.02.2011, 22:01
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
new bool:tenhochave[MAX_PLAYERS];
if(tenhochave[playerid] == true)
{
SendClientMessage(playerid, 0xFFFFFFFF, "Vб dб um rolй.");
return 1;
}
if(tenhochave[playerid] == false)
{
SendClientMessage(playerid, 0xFFFFFFFF, "Isto й um assalto!");
RemovePlayerFromVehicle(playerid);
return 1;
}
}
return 1;
}