Posts: 103
Threads: 27
Joined: Jun 2015
I want to block the dialog when the player is in deathmatch
Код:
CMD:w(playerid,params[])
{
if(God[playerid] == 0)
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "Weapons List", "{FFFFFF}Pistols\n{FFFFFF}Sub- Machine Guns\n{FFFFFF}Shotguns\n{FFFFFF}Assault Rifles\n{FFFFFF}Melee Weapons", "Select", "Cancel");
}
}
But i already blocked it for one thing so how will i block it for dm too?
Posts: 67
Threads: 23
Joined: Jan 2015
Reputation:
0
If you have like /dm then create it in virtual world, and block dialog if player is in that virtual world
Posts: 103
Threads: 27
Joined: Jun 2015
Quote:
Originally Posted by NeamPojma
If you have like /dm then create it in virtual world, and block dialog if player is in that virtual world
|
I already made dm in virtual world and i already tested it but with indm[playerid]
Код:
CMD:w(playerid,params[])
{
if(God[playerid] == 0)
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "Weapons List", "{FFFFFF}Pistols\n{FFFFFF}Sub-Machine Guns\n{FFFFFF}Shotguns\n{FFFFFF}Assault Rifles\n{FFFFFF}Melee Weapons", "Select", "Cancel");
}
else GameTextForPlayer(playerid, "~g~You godmod is enabled ~n~~w~use /god to disable it",4500,3);
if(indm[playerid] >= 1) return GameTextForPlayer(playerid,"~g~you are not in freeroam",4500,3);
return 1;
}
but not worked
Posts: 103
Threads: 27
Joined: Jun 2015
Posts: 361
Threads: 16
Joined: Aug 2013
Even I had not understand his problem
Posts: 405
Threads: 40
Joined: Aug 2011
Reputation:
0
I think he wants to block a command from being used if they're either in a DM part of the server or if they're in a current fight.
You use variables to either determine what part of the server they're in. (I have no clue what you mean still.)