[Help]About weapons
#8

I made a new version of this command.But when I go on server and enter the commnand server is restarting and repeating when I give weapon(try to give) ID's of weapons: 1 - 47.

How ti fix that?Here is the command:

pawn Код:
CMD:dajoruzje(playerid, params[])
{
   new id, parametar, oruzje, municija, string[128], adminime[MAX_PLAYER_NAME], igracime[MAX_PLAYER_NAME];
   if(sscanf(params, "ui", id, parametar))
   {
            SCM(playerid, BIJELA, ""COL_SVIJETLOPLAVA"| FriXion | "COL_BIJELA"/dajoruzje [ID/Dio imena] [ID oruzja] [Municija(metci)]");
            if(PI[playerid][Admin] >=1 || IPA(playerid))
            {
                if(parametar < 1 || parametar > 47) return SCM(playerid, BIJELA, ""COL_SVIJETLOPLAVA"| FriXion | "COL_BIJELA"Oruzje ID-ovi : "COL_SVIJETLOPLAVA"1-47");
                if(parametar < 1 || parametar > 999) return SCM(playerid, BIJELA, ""COL_SVIJETLOPLAVA"| FriXion | "COL_BIJELA"Municija(metci) : "COL_SVIJETLOPLAVA"1-999");
            }
            return 1;
    }
    else
    {
        GetPlayerName(playerid, adminime, sizeof(adminime));
        adminime[strfind(adminime, "_")] = ' ';
        GetPlayerName(id, igracime, sizeof(igracime));
        DajOruzje(id, oruzje, municija);
        PI[playerid][Oruzje] = parametar;
        SCMF(playerid, BIJELA, ""COL_SVIJETLOPLAVA"| FriXion | "COL_BIJELA"Dao si igracu "COL_SVIJETLOPLAVA"%s "COL_BIJELA"oruzje "COL_SVIJETLOPLAVA"%s(%d)"COL_BIJELA"sa municijom "COL_SVIJETLOPLAVA"%i", igracime, WeaponName(parametar), parametar, oruzje, municija);
        SCMF(id, BIJELA,  ""COL_SVIJETLOPLAVA"| FriXion | "COL_CRVENA"Admin %s "COL_BIJELA"ti je dao oruzje "COL_SVIJETLOPLAVA"%s(%d) "COL_BIJELA"sa municijom "COL_SVIJETLOPLAVA"%i", adminime, WeaponName(parametar), parametar, oruzje, municija);
        format(string, sizeof(string), ""COL_CRVENA"|STAFF| "COL_BIJELA"Admin "COL_SVIJETLOPLAVA"%s "COL_BIJELA"je dao igracu "COL_SVIJETLOPLAVA"%s "COL_BIJELA"oruzje "COL_SVIJETLOPLAVA"%s(%d) "COL_BIJELA"sa municijom "COL_SVIJETLOPLAVA"%i", adminime, igracime, WeaponName(parametar), parametar, oruzje, municija);
        StaffPoruka(BIJELA, string);
    }
    return 1;
}
Reply


Messages In This Thread
[Help]About weapons - by Danny1 - 29.04.2012, 17:03
Re: [Help]About weapons - by Ballu Miaa - 29.04.2012, 17:12
Re: [Help]About weapons - by Danny1 - 29.04.2012, 17:17
Re: [Help]About weapons - by Youwannaplayarough?OKAY! - 29.04.2012, 17:23
Re: [Help]About weapons - by Danny1 - 29.04.2012, 17:33
Re: [Help]About weapons - by Danny1 - 30.04.2012, 15:05
Re: [Help]About weapons - by Danny1 - 30.04.2012, 15:19
Re: [Help]About weapons - by Danny1 - 01.05.2012, 16:48
Re: [Help]About weapons - by Danny1 - 01.05.2012, 19:43

Forum Jump:


Users browsing this thread: 2 Guest(s)