Help with disable weapons (rep+)
#1

How i can disable all weapons in zone and when the player go out from that zone to have the same weapons which he had
Reply
#2

Under OnPlayerUpdate put this:

pawn Код:
if(IsPlayerInArea(playerid, AREA INFO HERE)
{
    ResetPlayerWeapons(playerid);
}
This will get you started, but giving them back you will have to do something else.
Reply
#3

This will work:

pawn Код:
public OnPlayerUpdate(playerid)
if(IsPlayerInArea(playerid, AREA INFO HERE)
{
    SetPlayerArmedWeapon(playerid, 0);
}
}
And it wont take the weapons away, so they can re-use them when they exit the area.
Reply
#4

Quote:
Originally Posted by DeathTone
Посмотреть сообщение
This will work:

pawn Код:
public OnPlayerUpdate(playerid)
if(IsPlayerInArea(playerid, AREA INFO HERE)
{
    SetPlayerArmedWeapon(playerid, 0);
}
}
And it wont take the weapons away, so they can re-use them when they exit the area.
Smart thinking. Good job
Reply
#5

yes but when he go out i wont to have the same weapons
Reply
#6

Yes you will, it just sets your armed weapon to fists, while your in the area, when you leave it, your weapons will be "unlocked". No weapons are being removed. Nao give me my rep I came here for, kthnx
Reply
#7

you need to save the weapons and in order to do that you need more functions.
I will make a small tutorial for a desert eagle. give me 2 minutes
Reply
#8

Quote:
Originally Posted by Marco_Valentine
Посмотреть сообщение
you need to save the weapons and in order to do that you need more functions.
I will make a small tutorial for a desert eagle. give me 2 minutes
I'm pretty sure it has already been answered.
Reply
#9

i see o.o
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)