drive by gun
#1

how to off player weapon on pessenger seat i wan player can't shoot with dealge on pessenger seat and when he out of car and then they got back deagle.
Reply
#2

Callback: OnPlayerStateChange
Check whether the player is with a deagle as a passenger, if he got a deagle, just use SetPlayerArmedWeapon, else do nothing.

pawn Код:
if(newstate == PLAYER_STATE_PASSENGER && GetPlayerWeapon(playerid) == 24)
{
    SendClientMessage(playerid,-1,"Don't use deagle as passenger, dumb");
    SetPlayerArmedWeapon(playerid,0);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)