02.09.2013, 01:32
pawn Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_PASSENGER)
{
if(GetPlayerWeapon(playerid) == 24)
{
GivePlayerWeapon(playerid, 1, 0);
SendClientMessage(playerid, -1,"[ x ] A arma desert eagle foi removida. ");
return 1;
}
}
return 1;
}