/calm and /uncalm
#9

I'll go on topic for a second...

Use a bool statement to determine if the server state is calm or not.

Under OnPlayerUpdate (I know people say not to use it, but it's fine for this.), add this:

pawn Код:
if(calmState == true) SetPlayerArmedWeapon(playerid, 0);
That will check if someone tries to scroll a different weapon. If they do, it resets it back to their fist.
Reply


Messages In This Thread
/calm and /uncalm - by RiChArD_A - 24.01.2013, 22:34
Re: /calm and /uncalm - by arakuta - 24.01.2013, 22:42
Re: /calm and /uncalm - by Sime30 - 24.01.2013, 22:54
Re: /calm and /uncalm - by Scenario - 24.01.2013, 23:22
Re: /calm and /uncalm - by Sime30 - 24.01.2013, 23:27
Re: /calm and /uncalm - by Scenario - 24.01.2013, 23:31
Re: /calm and /uncalm - by Riddick94 - 24.01.2013, 23:32
Re: /calm and /uncalm - by Sime30 - 24.01.2013, 23:39
Re: /calm and /uncalm - by Scenario - 24.01.2013, 23:39
Respuesta: Re: /calm and /uncalm - by RiChArD_A - 25.01.2013, 01:55

Forum Jump:


Users browsing this thread: 1 Guest(s)