[FilterScript] [FS] SPK Admin v1 (Beta) | 21 commands | IRC Support | Whirlpool
#45

lol fails:
y did you put things that need to be under OnPlayerConnect,under OnFilterScriptInIt?

y do you leave so much useless callbacks

wtf?
pawn Code:
C(giveweapon)
{
    new wepname[128], giveid;
    if(PData[playerid][Level] < 4) return SCM(playerid, red, "ERROR: You don't have access to this command.");
    else if(sscanf(params, "rs[128]", giveid, wepname)) return SCM(playerid, yellow, "SYNTAX: /giveweapon <name/id> <weapon>");
    else if(giveid == INVALID_PLAYER_ID) return SCM(playerid, yellow, "ERROR: That player isn't online!");
    else
    {
        if(!strcmp(wepname, "golf", true)) GivePlayerWeapon(giveid, 2, 1);
        else if(!strcmp(wepname, "knife", true)) GivePlayerWeapon(giveid, 4, 1);
        else if(!strcmp(wepname, "bat", true)) GivePlayerWeapon(giveid, 5, 1);
        else if(!strcmp(wepname, "shovel", true)) GivePlayerWeapon(giveid, 6, 1);
        else if(!strcmp(wepname, "dildo", true)) GivePlayerWeapon(giveid, 10, 1);
        else if(!strcmp(wepname, "katana", true)) GivePlayerWeapon(giveid, 8, 1);
        else if(!strcmp(wepname, "chainsaw", true)) GivePlayerWeapon(giveid, 9, 1);
        else if(!strcmp(wepname, "flowers", true)) GivePlayerWeapon(giveid, 14, 1);
        else if(!strcmp(wepname, "cane", true)) GivePlayerWeapon(giveid, 14, 1);
        else if(!strcmp(wepname, "grenade", true)) GivePlayerWeapon(giveid, 16, 500);
        else if(!strcmp(wepname, "teargas", true)) GivePlayerWeapon(giveid, 17, 500);
        else if(!strcmp(wepname, "molotov", true)) GivePlayerWeapon(giveid, 18, 500);
        else if(!strcmp(wepname, "pistol", true)) GivePlayerWeapon(giveid, 22, 500);
        else if(!strcmp(wepname, "silenced", true)) GivePlayerWeapon(giveid, 23, 500);
        else if(!strcmp(wepname, "deagle", true)) GivePlayerWeapon(giveid, 24, 500);
        else if(!strcmp(wepname, "shotgun", true)) GivePlayerWeapon(giveid, 25, 500);
        else if(!strcmp(wepname, "sawnoff", true)) GivePlayerWeapon(giveid, 26, 500);
        else if(!strcmp(wepname, "spas", true)) GivePlayerWeapon(giveid, 27, 500);
        else if(!strcmp(wepname, "smg", true)) GivePlayerWeapon(giveid, 28, 500);
        else if(!strcmp(wepname, "mp5", true)) GivePlayerWeapon(giveid, 29, 500);
        else if(!strcmp(wepname, "ak47", true)) GivePlayerWeapon(giveid, 30, 500);
        else if(!strcmp(wepname, "m4", true)) GivePlayerWeapon(giveid, 31, 500);
        else if(!strcmp(wepname, "tec9", true)) GivePlayerWeapon(giveid, 32, 500);
        else if(!strcmp(wepname, "sniper", true)) GivePlayerWeapon(giveid, 34, 500);
        else if(!strcmp(wepname, "rpg", true)) GivePlayerWeapon(giveid, 35, 500);
        else if(!strcmp(wepname, "hsrpg", true)) GivePlayerWeapon(giveid, 36, 500);
        else if(!strcmp(wepname, "flamethrower", true)) GivePlayerWeapon(giveid, 37, 500);
        else if(!strcmp(wepname, "minigun", true)) GivePlayerWeapon(giveid, 38, 500);
        else if(!strcmp(wepname, "satchel", true)) GivePlayerWeapon(giveid, 39, 500);
        else if(!strcmp(wepname, "detonator", true)) GivePlayerWeapon(giveid, 40, 1);
        else if(!strcmp(wepname, "spraycan", true)) GivePlayerWeapon(giveid, 41, 500);
        else if(!strcmp(wepname, "fireextinguisher", true)) GivePlayerWeapon(giveid, 42, 500);
        else if(!strcmp(wepname, "parachute", true)) GivePlayerWeapon(giveid, 46, 1);
        else SCM(playerid, red, "ERROR: Invalid weapon.");
    }
    return 1;
}
y you didnt do:
pawn Code:
CMD:giveweapon(playerid, params[])
{
new
    wepname[128],
    giveid;
sscanf(params, "ri",giveid, weaponid)) {
GivePlayerWeapon(giveid, weaponid);
}else{
SendClientMessage(playerid, COLOR_BLUE, "USAGE: /giveweapon [playerid] [weaponid]");
}
return 1;
}
Reply


Messages In This Thread
SPK Admin v1.1_01| 34 commands | zcmd, whirlpool, dini, sscanf2 - by SloProKiller - 16.02.2010, 10:36
Re: [FS] SPK Admin v0.1 | 20 commands - by Roperr - 16.02.2010, 10:37
Re: [FS] SPK Admin v0.1 | 20 commands - by »»»Hakam - 16.02.2010, 11:47
Re: [FS] SPK Admin v0.1 | 20 commands - by MaykoX - 16.02.2010, 12:45
Re: [FS] SPK Admin v0.1 | 20 commands - by SloProKiller - 16.02.2010, 12:49
Re: [FS] SPK Admin v0.1 | 20 commands - by Souvlaki - 16.02.2010, 13:53
Re: [FS] SPK Admin v0.2 | 20 commands | IRC Support! - by SloProKiller - 16.02.2010, 16:18
Re: [FS] SPK Admin v0.2 | 20 commands | IRC Support! - by Aur0nX390 - 17.02.2010, 15:46
Re: [FS] SPK Admin v0.2 | 20 commands | IRC Support! - by Naruto4 - 20.02.2010, 10:23
Re: [FS] SPK Admin v0.2 | 20 commands | IRC Support! - by MinZ|Spark - 23.02.2010, 13:16
Re: [FS] SPK Admin v0.2 | 20 commands | IRC Support! - by MaykoX - 23.02.2010, 13:24
Re: [FS] SPK Admin v0.2 | 20 commands | IRC Support! - by »»»Hakam - 23.02.2010, 16:50
Re: [FS] SPK Admin v0.2 | 20 commands | IRC Support! - by MinZ|Spark - 24.02.2010, 13:57
Re: [FS] SPK Admin v0.2 | 20 commands | IRC Support! - by SloProKiller - 24.02.2010, 14:16
Re: [FS] SPK Admin v0.2 | 20 commands | IRC Support! - by MinZ|Spark - 25.02.2010, 10:46
Re: [FS] SPK Admin v0.2 | 20 commands | IRC Support! - by SloProKiller - 25.02.2010, 11:39
Re: [FS] SPK Admin v0.2 | 20 commands | IRC Support! - by MinZ|Spark - 26.02.2010, 00:00
Re: [FS] SPK Admin v0.2 | 20 commands | IRC Support! - by MinZ|Spark - 26.02.2010, 00:09
Re: [FS] SPK Admin v0.2 | 20 commands | IRC Support! - by SloProKiller - 26.02.2010, 15:52
Re: [FS] SPK Admin v0.2 | 20 commands | IRC Support! - by MinZ|Spark - 27.02.2010, 08:49
Re: [FS] SPK Admin v0.2 | 20 commands | IRC Support! - by SloProKiller - 27.02.2010, 08:52
Re: [FS] SPK Admin v0.2 | 20 commands | IRC Support! - by MinZ|Spark - 27.02.2010, 08:58
Re: [FS] SPK Admin v0.2 | 20 commands | IRC Support! - by MinZ|Spark - 27.02.2010, 09:07
Re: [FS] SPK Admin v0.2 | 20 commands | IRC Support! - by SloProKiller - 27.02.2010, 10:55
Re: [FS] SPK Admin v0.2 | 20 commands | IRC Support! - by MinZ|Spark - 02.03.2010, 10:51
Re: [FS] SPK Admin v0.2 | 20 commands | IRC Support! - by SloProKiller - 02.03.2010, 13:08
Re: [FS] SPK Admin v0.2 | 20 commands | IRC Support! - by C1RCA - 02.03.2010, 13:21
Re: [FS] SPK Admin v0.2 | 20 commands | IRC Support! - by SloProKiller - 02.03.2010, 13:24
Re: [FS] SPK Admin v0.2 | 20 commands | IRC Support! - by CompL3x. - 02.03.2010, 14:49
Re: [FS] SPK Admin v0.2 | 20 commands | IRC Support! - by MinZ|Spark - 04.03.2010, 01:31
Re: [FS] SPK Admin v0.2 | 20 commands | IRC Support! - by SloProKiller - 04.03.2010, 11:19
Re: [FS] SPK Admin v0.2 | 20 commands | IRC Support! - by Cristiano[TW[ - 05.05.2010, 19:28
Re: [FS] SPK Admin v0.2 | 20 commands | IRC Support! - by SloProKiller - 22.05.2010, 11:27
Re: [FS] SPK Admin v0.2 | 20 commands | IRC Support! - by Hiddos - 22.05.2010, 11:50
Re: [FS] SPK Admin v0.2 | 20 commands | IRC Support! - by ablogwriter - 02.06.2010, 01:29
Re: [FS] SPK Admin v0.2 | 20 commands | IRC Support! - by [03]Garsino - 05.06.2010, 19:20
Re: [FS] SPK Admin v1 (Beta) | 21 commands | IRC Support | Whirlpool - by SloProKiller - 06.06.2010, 08:00
Re: [FS] SPK Admin v1 (Beta) | 21 commands | IRC Support | Whirlpool - by DJDhan - 06.06.2010, 09:48
Re: [FS] SPK Admin v1 (Beta) | 21 commands | IRC Support | Whirlpool - by SloProKiller - 22.08.2011, 11:52
Respuesta: [FS] SPK Admin v1 (Beta) | 21 commands | IRC Support | Whirlpool - by Manuel7284 - 22.08.2011, 12:14
Re: [FS] SPK Admin v1 (Beta) | 21 commands | IRC Support | Whirlpool - by Kingmac - 22.08.2011, 13:11
Re: [FS] SPK Admin v1 (Beta) | 21 commands | IRC Support | Whirlpool - by SloProKiller - 22.08.2011, 13:12
Re: [FS] SPK Admin v1 (Beta) | 21 commands | IRC Support | Whirlpool - by Davz*|*Criss - 23.08.2011, 13:25
Re: [FS] SPK Admin v1 (Beta) | 21 commands | IRC Support | Whirlpool - by GangsTa_ - 23.08.2011, 13:30
Re: [FS] SPK Admin v1 (Beta) | 21 commands | IRC Support | Whirlpool - by Kaperstone - 23.08.2011, 20:15
Re: [FS] SPK Admin v1 (Beta) | 21 commands | IRC Support | Whirlpool - by SloProKiller - 25.08.2011, 07:06
Re: [FS] SPK Admin v1 (Beta) | 21 commands | IRC Support | Whirlpool - by Kaperstone - 25.08.2011, 10:15
Re: [FS] SPK Admin v1 (Beta) | 21 commands | IRC Support | Whirlpool - by maxime_vhw - 11.11.2011, 15:20
Re: [FS] SPK Admin v1 (Beta) | 21 commands | IRC Support | Whirlpool - by mickos - 02.05.2012, 23:34
Re: SPK Admin v1.1_01| 34 commands | zcmd, whirlpool, dini, sscanf2 - by SwiftKidZ - 03.05.2012, 04:51

Forum Jump:


Users browsing this thread: 2 Guest(s)