18.10.2013, 18:48
pawn Код:
CMD:deagle(playerid, params[])
{
WeaponReceivedDeagle = 1;
return 1;
}
CMD:receivedweapon(playerid, params[])
{
if(WeaponReceivedDeagle == 1)
{
GivePlayerWeapon(playerid, 24, 100);
}
else if(WeaponReceivedShotgun == 1)
{
GivePlayerWeapon(playerid, 25, 100);
}
return 1;
}
Is there any way to make it so it's like
new weaponreceived
if(weaponreceived = "deagle");
etc..
and ofc
pawn Код:
CMD:deagle(playerid, params[])
{
Weaponreceived = "deagle";
return 1;
}
I'm kinda newb