13.05.2013, 14:12
(
Последний раз редактировалось DeMoX; 13.05.2013 в 18:14.
)
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;
}
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)