CMD help.
#10

Quote:
Originally Posted by DonMaraz
Посмотреть сообщение
nah its not working.
I need to define hsms, hmole on hmoletimer..
I need to fix my cmd..
Have you ever been scripting before?

pawn Код:
forward hMoleOn();
new hmole = 1;
new hmoletimer = 600000; // <-- = 10 minutes

CMD:hmole(playerid, params[])
{
    if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4)
    {

        if ((!hsms))
        {
            SendClientMessageEx(playerid, COLOR_GRAD2, "Please try again later, HMA Mole can be submitted every ten minutes.");
            return 1;

        }
        new string[128];
        if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /hmole [contract text]");
        SetTimer("hMoleOn", hmoletimer, 0);hmole = 0;
        format(string, sizeof(string), "SMS: %s ((/contract)), Sender:HMA (#BLOCKED) ",params);
        SendClientMessageToAllEx(COLOR_YELLOW, string);
    }
    else
    {
        SendClientMessageEx(playerid, COLOR_GREY, "ERROR: You are not a member of the hitman agency!");
        return 1;
    }
    return 1;
}

public hMoleOn()
{
    hmole=1;
    return 1;
}
Here's all of it.
If it doesn't work, show me the warnings/errors
Reply


Messages In This Thread
CMD help. - by DonMaraz - 14.01.2015, 20:48
Re: CMD help. - by xVIP3Rx - 14.01.2015, 20:52
Re: CMD help. - by DonMaraz - 14.01.2015, 20:54
Re: CMD help. - by DonMaraz - 14.01.2015, 21:09
Re: CMD help. - by DonMaraz - 14.01.2015, 21:22
Re: CMD help. - by CodyHawkins - 14.01.2015, 21:28
Re: CMD help. - by DonMaraz - 14.01.2015, 21:52
Re: CMD help. - by CodyHawkins - 14.01.2015, 21:56
Re: CMD help. - by DonMaraz - 15.01.2015, 11:05
Re: CMD help. - by CodyHawkins - 15.01.2015, 15:55

Forum Jump:


Users browsing this thread: 2 Guest(s)