How to do this?
#1

If a player get a minigun then his minigun ammo should be set to 0.
How can i make?
Reply
#2

Something like this should do,

untested, made in midnight while sleepy, but should be working

pawn Код:
SetTimer("MinigunCheck", 2000, true);

forward MinigunCheck();
public MinigunCheck()
{
    foreach(Player, i)
    {
        if(GetPlayerWeapon(i) == 38) SetPlayerAmmo(i, 38, 0);
    }
    return 1;
}
Reply
#3

DELETED.
LaTe.
Reply
#4

Quote:
Originally Posted by milanosie
Посмотреть сообщение
Something like this should do,

untested, made in midnight while sleepy, but should be working

pawn Код:
SetTimer("MinigunCheck", 2000, true);

forward MinigunCheck();
public MinigunCheck()
{
    (Player, i)
    {
        if(GetPlayerWeapon(i) == 38) SetPlayerAmmo(i, 38, 0);
    }
    return 1;
}
this is a good point but you have to use foreach include you can down load it from here https://sampforum.blast.hk/showthread.php?tid=92679
Reply
#5

Why not just remove it..?
Reply
#6

Quote:
Originally Posted by MP2
Посмотреть сообщение
Why not just remove it..?
Thats what I was thinking, but he asked for this so...

I ban players with miniguns
Dont take it, punish them!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)