Block goto command in dm's
#7

Code:
//Somewhere on your gamemode (Not in any function/stock)
IsInMinigunArena[MAX_PLAYERS];
Code:
//OnPlayerCommandText
if (strcmp("/minigun", cmdtext, true, 10) == 0)
{
     IsInMinigunArena[playerid] = 1;
     SetPlayerPos(playerid, 00.0000, 00.0000, 00.0000);
     return 1;
}
Code:
//OnPlayerCommandText
if (strcmp("/goto", cmdtext, true, 10) == 0)
{
     if(IsInMinigunArena[playerid] != 0) return SendClientMessage(playerid, 0xFF0000C8, "You CANNOT Use This Command now!");

     //Your /goto code
     return 1;
}
Reply


Messages In This Thread
Block goto command in dm's - by sirvanec - 06.02.2015, 13:27
Re: Block goto command in dm's - by ATGOggy - 06.02.2015, 13:32
Re: Block goto command in dm's - by sirvanec - 06.02.2015, 13:59
Re: Block goto command in dm's - by HazardouS - 06.02.2015, 14:06
Re: Block goto command in dm's - by sirvanec - 06.02.2015, 14:30
Re: Block goto command in dm's - by HazardouS - 06.02.2015, 14:52
Re: Block goto command in dm's - by Maximus0 - 06.02.2015, 16:29
Re: Block goto command in dm's - by Saliim - 13.04.2016, 15:39

Forum Jump:


Users browsing this thread: 2 Guest(s)