Need a simple guidance.. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Need a simple guidance.. (
/showthread.php?tid=326249)
Need a simple guidance.. -
Jing_Chan - 16.03.2012
Please could somebody show me how to create
a simple ZCMD command where you type the command such as
/weaponset, and if your in range of ..... and you got $4,000 on hand it succeeds and
hands you a MP5, shotgun, and kelvar.
Just need a guideline on how to do it :P
Thanks
~~James~~
Re: Need a simple guidance.. -
Quinlynn - 16.03.2012
Here is a snippit for this, I created it. Configure to your symbols.
pawn Код:
CMD:weaponset(playerid)
{
if PlayerIsInRangeOfPoint(X, Y, Z);
if PlayerCash >= 3999 );
{
GivePlayerWeapon == 25);
GivePlayerWeapon == 29);
SetPlayerArmor == 100);
SendClientMessageEx(playerid, COLOR_WHITE,"You have received Full Armor, a Shotgun, and a MP5.");
}
else
{
SendClientMessageEx(playerid, COLOR_WHITE,"You are not close enough and/or you do not have 4,000 cash.");
}
return 1;
}
If I helped add one to my rep.