Need NEw Command - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need NEw Command (
/showthread.php?tid=436966)
Need NEw Command -
ewida - 13.05.2013
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!
Re: Need NEw Command -
Cameltoe - 13.05.2013
Wrong section mr.. try the script request section.
Re: Need NEw Command -
doreto - 13.05.2013
Script Request Thread #6
Re: Need NEw Command -
DeMoX - 13.05.2013
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)