Question!
#4

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
Reply


Messages In This Thread
Question! - by ColdXX - 11.09.2010, 17:48
Re: Question! - by PotH3Ad - 11.09.2010, 17:52
Re: Question! - by ColdXX - 11.09.2010, 17:54
Re: Question! - by PotH3Ad - 11.09.2010, 18:00
Re: Question! - by ColdXX - 11.09.2010, 18:04
Re: Question! - by Rachael - 11.09.2010, 18:07
Re: Question! - by ColdXX - 11.09.2010, 18:37

Forum Jump:


Users browsing this thread: 2 Guest(s)