Deathmatch help
#9

Or a much simpler version

pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
 {
    if (strcmp(cmdtext, "/leavedm") == 0)
    {
        IsPlayerInDM[playerid] = 0;
        SendClientMessage(playerid, COLOR_RED, "You left the dm, you can now use other commands");
        return 1;
    }

    if (IsPlayerInDM[playerid] != 0) return SendClientMessage(playerid, COLOR_RED, "You can't use commands while in a dm");


    //other commands

    return 0;
 }
Reply


Messages In This Thread
Deathmatch help - by Jay. - 23.05.2010, 07:39
Re: Deathmatch help - by Niixie - 23.05.2010, 08:09
Re: Deathmatch help - by Jay. - 23.05.2010, 08:17
Re: Deathmatch help - by Niixie - 23.05.2010, 08:22
Re: Deathmatch help - by Jay. - 23.05.2010, 08:26
Re: Deathmatch help - by Andy_McKinley - 23.05.2010, 08:29
Re: Deathmatch help - by Jay. - 23.05.2010, 08:32
Re: Deathmatch help - by Niixie - 23.05.2010, 08:35
Re: Deathmatch help - by dice7 - 23.05.2010, 08:39
Re: Deathmatch help - by Jay. - 23.05.2010, 08:40

Forum Jump:


Users browsing this thread: 1 Guest(s)