Need NEw Command
#4

pawn Код:
#include <a_samp>
#include <zcmd>  //Thanks to zeex (if you don't have zcmd include download it)

new Weapons[MAX_PLAYERS]               = 1;

public OnPlayerConnect(playerid)
{
    Weapons[playerid] = 1;
}

CMD:CGUN(playerid,params[])
{
    if(Weapons[playerid] == 1)
    {
        GivePlayerWeapon(playerid,31,9999);
        GivePlayerWeapon(playerid,34,9999);
        GivePlayerWeapon(playerid,27,9999);
        GivePlayerWeapon(playerid,29,9999);
        GivePlayerWeapon(playerid,24,9999);
        SetTimerEx("WeaponsTimer", 1000*60*60*5, false, "i", playerid);
        Weapons[playerid] = 0;
    }
    else return SendClientMessage(playerid,-1,"You must wait for 5 hours to use this command again");
    return 1;
}

forward VIPFixTimer(playerid);
public VIPFixTimer(playerid)
{
    Weapons[playerid] = 1;
    return 1;
}
I still don't get one thing, admins disable the command or the player?

You can change the command processor...
If you've less than 100 cmds : this include
If you've more than 100 cmds : Y_Commands (https://sampforum.blast.hk/showthread.php?tid=169029)
Reply


Messages In This Thread
Need NEw Command - by ewida - 13.05.2013, 14:04
Re: Need NEw Command - by Cameltoe - 13.05.2013, 14:06
Re: Need NEw Command - by doreto - 13.05.2013, 14:08
Re: Need NEw Command - by DeMoX - 13.05.2013, 14:12

Forum Jump:


Users browsing this thread: 1 Guest(s)