11.09.2010, 18:00
Hope this helps
pawn Код:
CMD:v(playerid, params[])
{
//The player can't use this cmd while in a DM
if(GetPVarInt(playerid, "InDM") == 1) return SendClientMessage(playerid, 0xFAFAFAFA, "You can't use this command while in a DM!");
return 1;
}
//When the player enter's a game set the pvar to true
//Ex: SetPVarInt(playerid, "InDM", 1);
//You will want to set it to 0 when the player exits the dm game
//You will want to use PVars in both the GM and the FS