[Help] Turn on and off with the same command
#1

Hi! In my server I have a ramp spawning system and I made it so for them to spawn by pressing "Caps" only if you type /R, theres a way to make if the player types /R again the ramp spawning turns off?

Here's the code:

Quote:

new g_Ramp[MAX_PLAYERS];

Quote:

if (strcmp("/R", cmdtext, true, 5) == 0)
{
g_Ramp[playerid] = 1;
}

Thanks in advance!
Reply


Messages In This Thread
[Help] Turn on and off with the same command - by Dragonic - 04.08.2015, 09:54
Re: [Help] Turn on and off with the same command - by MarvinPWN - 04.08.2015, 10:04
Re: [Help] Turn on and off with the same command - by Dragonic - 04.08.2015, 10:08
Re: [Help] Turn on and off with the same command - by Dragonic - 04.08.2015, 12:15
Re: [Help] Turn on and off with the same command - by Krokett - 04.08.2015, 12:28

Forum Jump:


Users browsing this thread: 1 Guest(s)