25.07.2013, 21:21
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(oldstate == PLAYER_STATE_DRIVER)
{
if(CapaceteStatus[playerid] == 1)
{
RemovePlayerAttachedObject(playerid, SLOT);
SendClientMessage(playerid,Azul,"Retiras-te o Capacete.");
CapaceteStatus[playerid] = 0;
}
}
return 1;
}