need a bit help
#1

well, I made every job has own gun weapon available to take only that job, but when somebody pickup it he too get weapon + message that isn't his job gun
what's wrong?
pawn Код:
for(new i=0;i<MAX_JOBS;i++)
    {
        if(pickupid == JobIcons[i])
        {
            if(i != GetPlayerJobID(playerid))
            {
                scm(playerid,c_r,"( ! ) This weapon icon isn't for your job !");
                return 1;
            }
            new gun = GetWeaponIDFromIconID(JobsIcons[i][iModel]);
            if(gun == -1)
            {
                SetPlayerArmour(playerid,100.0);
            }
            else
            {
                GivePlayerWeapon(playerid,gun,1);
            }
            scm(playerid,COLOR_GREEN,"( ! ) You receive weapon of job !");
            return 1;
        }
    }
Reply


Messages In This Thread
need a bit help - by mineralo - 24.12.2012, 08:04

Forum Jump:


Users browsing this thread: 2 Guest(s)