25.09.2013, 19:28
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;
}