How to give weapons to All with one CMD?
#2

pawn Код:
CMD:giveweapon(playerid, params[])
{
    if(pInfo[playerid][pAdminLevel] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Invalid admin level.");
    new giveplayerid, weaponid, ammo;
    if(sscanf(params, "udd", giveplayerid, weaponid, ammo)) return SendClientMessage(playerid, COLOR_WHITE, "Correct usage: /giveweapon [playerid/name] [weaponid] [ammo]");
    if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_WHITE, "Invalid player ID");
    GivePlayerWeapon(giveplayerid, weaponid, ammo);
    return 1;
}

CMD:setskin(playerid, params[], help)
{
    if(pInfo[playerid][pAdminLevel] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Invalid admin level.");
    new giveplayerid, skinid;
    if(sscanf(params, "ud", giveplayerid, skinid)) return SendClientMessage(playerid, COLOR_WHITE, "Correct usage: /setskin [playerid/name] [skinid]");
    if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_WHITE, "Invalid player ID");
    SetPlayerSkin(giveplayerid, skinid);
    return 1;
}
ZCMD & sscanf
Reply


Messages In This Thread
How to give weapons to All with one CMD? - by MAFIAWARS - 25.09.2013, 19:20
Re: How to give weapons to All with one CMD? - by DanishHaq - 25.09.2013, 19:28
Re: How to give weapons to All with one CMD? - by MAFIAWARS - 26.09.2013, 07:25
Re: How to give weapons to All with one CMD? - by MAFIAWARS - 26.09.2013, 08:04
Re: How to give weapons to All with one CMD? - by SAMProductions - 26.09.2013, 08:10
Re: How to give weapons to All with one CMD? - by iZN - 26.09.2013, 08:16

Forum Jump:


Users browsing this thread: 1 Guest(s)