GetWeaponIDFromName?
#2

Here it is

pawn Код:
GetWeaponModelIDFromName(wname[])
{
    for(new i = 0; i < 48; i++) {
        if (i == 19 || i == 20 || i == 21) continue;
        if (strfind(aWeaponNames[i], wname, true) != -1) {
            return i;
        }
    }
    return -1;
}
You can try make a code with it, and if it fails, you can post it here for others to help you
Reply


Messages In This Thread
GetWeaponIDFromName? - by Skylar Paul - 30.03.2011, 14:47
Re: GetWeaponIDFromName? - by xir - 30.03.2011, 14:49
Re: GetWeaponIDFromName? - by Skylar Paul - 30.03.2011, 14:57

Forum Jump:


Users browsing this thread: 1 Guest(s)