code not working (simple)
#1

pawn Код:
CMD:tazer(playerid, params[])
{
   if(GetPlayerWeapon(playerid) == 24) GivePlayerWeapon(playerid, 23, 17); //Give playerid sawnoff shotgun with 500 ammo
   if(GetPlayerWeapon(playerid) == 23) GivePlayerWeapon(playerid, 24, 1000000); //Give playerid sawnoff shotgun with 500 ammo
    return 1;
}
It's not working, any fix?
Reply
#2

What is the problem?


PS:

23 = Silenced 9mm
24 = Desert Eagle
26 = Sawnoff Shotgun
Reply
#3

What is the problem?
Reply
#4

The player doesn't get the weapons.
Reply
#5

The command only works if the player is with the weapon in hand
Reply
#6

pawn Код:
CMD:tazer(playerid, params[])
{
    GivePlayerWeapon(playerid, 23, 17);
    if(GetPlayerWeapon(playerid) == 23) GivePlayerWeapon(playerid, 24, 1000000);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)