How to use this function?
#1

Код:
GetPlayerArmedWeapon(playerid);
This is what I want to do with it:

Код:
if (GetPlayerArmedWeapon(playerid) = 38) ban(playerid);
Reply
#2

There is no samp function like GetPlayerArmedWeapon(playerid); , I think.
You can Use This Function:
pawn Код:
if(GetPlayerWeapon(playerid) == 38)
            {
            ban(playerid)
            }
Reply
#3

Use this instead:

pawn Код:
if(GetPlayerWeapon(playerid) == 38)
    ban(playerid);
Reply
#4

Quote:
Originally Posted by Mr.Anonymous
Посмотреть сообщение
Use this instead:

pawn Код:
if(GetPlayerWeapon(playerid) == 38)
    ban(playerid);
Doesn't matter with brackets.
Reply
#5

Quote:
Originally Posted by RedCrossER
Посмотреть сообщение
Doesn't matter with brackets.
Why use 4 lines when you can do that in 2? Or even 1.
pawn Код:
if(GetPlayerWeapon(playerid) == 38) ban(playerid);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)