Posts: 51
Threads: 16
Joined: Apr 2015
Reputation:
0
SO how can i do it? lets say i want to dis able this command "/slap" making no admins use it, without going and removing the command from the script.
Posts: 51
Threads: 16
Joined: Apr 2015
Reputation:
0
Ok so can u make it for this command to be able to disable it
else if(strcmp(cmdtext, "/rcweaps", true) == 0)
{
GivePlayerWeapon(playerid, 24, 999);
GivePlayerWeapon(playerid, 27, 999);
GivePlayerWeapon(playerid, 31, 999);
PlayerPlaySound(playerid,1054,0,0,0);
return 1;
}
Posts: 123
Threads: 14
Joined: Oct 2015
new bool:tog_rcweaps;
else if(strcmp(cmdtext, "/rcweaps", true) == 0)
{
if(tog_rcweaps == true)
{
GivePlayerWeapon(playerid, 24, 999);
GivePlayerWeapon(playerid, 27, 999);
GivePlayerWeapon(playerid, 31, 999);
PlayerPlaySound(playerid,1054,0,0,0);
}
return 1;
}
else if(strcmp(cmdtext, "/tog_rcweaps", true) == 0)
{
if(tog_rcweaps == true) tog_rcweaps = false;
else tog_rcweaps = true;
return 1;
}