18.10.2013, 18:58
There are no bugs or such, I just need to cut it down. Its too big.
I just need to know how to instead of making
I can just make
new weaponreceived = "shotgun" and then if they receive deagle it would actualy be weaponreceived = "deagle" (Set by me).
EX:
Basicaly how to detect it
if I have weapon = "deagle";
how to detect it?
if(weapon == "deagle") bugs...
I just need to know how to instead of making
pawn Код:
new weaponreceiveddeagle
new weaponreceivedshotgun
new weaponreceivedminigun
new weaponreceived = "shotgun" and then if they receive deagle it would actualy be weaponreceived = "deagle" (Set by me).
EX:
pawn Код:
CMD:receivedeagle(playerid, params[])
{
weaponreceived = "deagle";
return 1;
}
CMD:receiveshotgun(playerid, params[])
{
weaponreceived = "shotgun";
return 1;
}
CMD:what(playerid,params[])
{
if(weaponreceived = "shotgun")
{
//.................
}
return 1;
}
if I have weapon = "deagle";
how to detect it?
if(weapon == "deagle") bugs...