Weapons selection?
#1

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.
Reply
#2

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
Reply
#3

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
Reply
#4

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
Reply
#5

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
Reply
#6

Quote:
Originally Posted by BiG_Sm0k3
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
Thanks
Reply
#7

no problem
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)