using command
#1

Player can use the command and i have set it if he is in death match he can't use it but he still idk what the problem the other commands work fine but on this command not working

pawn Код:
CMD:cs(playerid,params[])
    {
        if(Teleport[playerid] == 1)
        {
        SendClientMessage(playerid, COLOR_RED, "You can't teleport when u are in class section");
        return 1;
        }
        if(indeathmatch[playerid] == 1)
        {
        SendClientMessage(playerid, COLOR_RED, "Type /Killme to leave the DM FIRST.");
        return 1;
        }
        else
        {
        ShowPlayerDialog(playerid, CSDIALOG, DIALOG_STYLE_MSGBOX, "{0094FF}MiniGame - Police VS Terrorist","{267F00}Select police or {267F00}terrorist\n\n","Police","Terrorist");
    return 1;
    }
}
Reply
#2

Are you sure that when he joins in /cs, it sets "indeathmatch[playerid]" to 1?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)