Weapons selection? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Weapons selection? (
/showthread.php?tid=84467)
Weapons selection? - killdahobo99 - 01.07.2009
I have mapped a DM zone, but would like to add a "weapons selection zone" Before the player is able to fight in the DM Zone.
So i want it, The player types /Dmzone and gets teleported to a place where there are 3 red markers, and they have to type /weapons in the red markers to be able to get there weapons.
That part is easy, and i know how, but the problem im having is...
How do i make it so, A player can only recieve 3 weapons and no more? Is that possible?
And
How do i make it so you can't hurt each other in this weapons selection area? So if you shoot each other, the health is frozen or something
Please and thank you.
Re: Weapons selection? -
HuRRiCaNe - 01.07.2009
pawn Код:
new weapons;
if(strcmp(cmdtext, "/sawnoff", true) == 0)
{
if(weapons ==4)
{
SendClientMessage(playerid,red,"You Have already choose your 3 weapons");
return 0;
}
GivePlayerWeapon(playerid,26,10000)
weapons++;
return 1;
}
should work
Re: Weapons selection? - killdahobo99 - 01.07.2009
Quote:
|
Originally Posted by BiG_Sm0k3
pawn Код:
new weapons;
if(strcmp(cmdtext, "/sawnoff", true) == 0) { if(weapons ==4) { SendClientMessage(playerid,red,"You Have already choose your 3 weapons"); return 0; } GivePlayerWeapon(playerid,26,10000) weapons++; return 1; }
should work
|
ooo...i forgot to mention, I'm using this FS
http://forum.sa-mp.com/index.php?topic=80764.0
So you type /weapons and choose from a menu.
How do i make it so that code works with this
Re: Weapons selection? - killdahobo99 - 01.07.2009
Actually, It doesnt matter any more......How do i just make it in this area, you cannot be hurt until you step into the next red marker for DM zone
Re: Weapons selection? -
HuRRiCaNe - 01.07.2009
http://pastebin.com/m5e5b1984
this is for the weps
and the other you could set the heatlh to 10000000000000 while the player is on the marker
Re: Weapons selection? - killdahobo99 - 01.07.2009
Quote:
|
Originally Posted by BiG_Sm0k3
|
Thanks
Re: Weapons selection? -
HuRRiCaNe - 01.07.2009
no problem