10.06.2013, 00:15
Hi, i need this command:
to check if pace mode is true:
If yes, then do what the command is supposed to do. But if not send a message saying: Pace Mode is not ON.
__________________________________________
I already tried this but didn't work:
pawn Код:
CMD:fun(playerid, params[])
{
if(PlayerInfo[playerid][AdminLevel] >= 2)
{
gPaceMode = false;
GivePlayerWeapon(playerid,24,100000);
GivePlayerWeapon(playerid,31,100000);
GivePlayerWeapon(playerid,29,100000);
}
else
{
SendClientMessage(playerid, -1, "{FF3300}Must be an Admin level 2 or higher to use this command.");
}
return 1;
}
pawn Код:
gPaceMode = true;
__________________________________________
I already tried this but didn't work:
pawn Код:
CMD:fun(playerid, params[])
{
if(PlayerInfo[playerid][AdminLevel] >= 2)
gPaceMode = true;
{
gPaceMode = false;
GivePlayerWeapon(playerid,24,100000);
GivePlayerWeapon(playerid,31,100000);
GivePlayerWeapon(playerid,29,100000);
}
SendClientMessage(playerid, -1, "{FF3300}Pace Mode is not ON.");
{
SendClientMessage(playerid, -1, "{FF3300}Must be an Admin level 2 or higher to use this command.");
}
return 1;
}