Need NEw Command
#1

Hello Guys,

im Need When the players tybe /cgun the players get Full Weapons set (Deagle,Sniper,M4,spas,mp5) And When they tybe /cgun and take the weapons they need to wait 5Hours then can take another one! Also im need a cmd to disable a /cgun command!!

Thanks For Help!
Reply
#2

Wrong section mr.. try the script request section.
Reply
#3

Script Request Thread #6
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)