Use command only after 15 mins?
#1

Here s my command ( /vskin <skinid> that will change player skin according its vip level )

I dont want people to abuse this command (use it only after 15 mins)

pawn Код:
CMD:vskin(playerid, params[])
{
    if(PlayerInfo[playerid][pVip] >= 1)
    {
        new skinid, string[128];
       
        if(sscanf(params, "i", skinid))
            return SendClientMessage(playerid, DEEPPINK, "USAGE: /vskin <id>");

        if(skinid < 0 || skinid > 299)
            return SendClientMessage(playerid, DEEPPINK, "ERROR: Available skins from 0 to 299");
           
        if(skinid == GetPlayerSkin(playerid))
            return SendClientMessage(playerid, DEEPPINK, "ERROR: You are already using this skin");
           
        {
            SetPlayerSkin(playerid, skinid);
            format(string, sizeof(string), "[VIP SKINS] You just set your skin to %i", skinid);
            SendClientMessage(playerid, GREEN, string);
        }
    }
    else return SendClientMessage(playerid, DEEPPINK, "ERROR: You must be vip level 1 to use this command!");
    return 1;
}
Reply


Messages In This Thread
Use command only after 15 mins? - by MiGu3X - 03.05.2013, 02:09
Re: Use command only after 15 mins? - by RevolutionaryGaming - 03.05.2013, 02:18
Respuesta: Use command only after 15 mins? - by MiGu3X - 03.05.2013, 02:26
Re: Use command only after 15 mins? - by RevolutionaryGaming - 03.05.2013, 02:29
Re: Use command only after 15 mins? - by RajatPawar - 03.05.2013, 02:33
Re: Use command only after 15 mins? - by Pottus - 03.05.2013, 02:38
Respuesta: Use command only after 15 mins? - by MiGu3X - 03.05.2013, 02:48
Re: Use command only after 15 mins? - by MiGu3X - 06.05.2013, 15:49
Re: Use command only after 15 mins? - by [KHK]Khalid - 06.05.2013, 16:20
Re: Use command only after 15 mins? - by RajatPawar - 06.05.2013, 16:54

Forum Jump:


Users browsing this thread: 1 Guest(s)