minigun... - 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: minigun... (
/showthread.php?tid=591224)
minigun... -
itachi - 09.10.2015
please i help with weapon minigun...
minigun only admin...
Re: minigun... -
Kevln - 09.10.2015
GivePlayerWeapon(playerid, 38, 5000);
Re: minigun... -
The God - 10.10.2015
You need to include zcmd and sscanf for this.
Код:
CMD:minigun(playerid,params[])
{
if(!PlayerIsAdmin(playerid)) return SendClientMessage(playerid,COLOE_RED,"You are not an admin!");
GivePlayerWeapon(playerid,38,5000);
return 1;
}
Re: minigun... -
Hybris - 11.10.2015
or if you wanna use it for admin ranks
Код:
CMD:minigun(playerid,params[])
{
if(testinfo[playerid][testadmin] >= 1) //this checks to see if the player is level 1 or higher
{
GivePlayerWeapon(playerid,38,5000);
}
else //if he isnt then it sends him this message
{
SendClientMessage(playerid,COLOR_RED,"You are not an admin!");
}
return 1;
}