15.10.2012, 00:05
PHP код:
CMD:editweapons(playerid, params[])
{
new string[128], wepslot, weaponID, iFac = arrFaction[playerid][g_iFactionID];
if(PlayerInfo[playerid][pAdmin] >= 5)
{
if(sscanf(params, "id", wepslot, weaponID)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editweapons [wepslot] [wepid]");
arrFaction[iFac][g_iLockerGuns][wepslot] = weaponID;
format(string, sizeof(string), "You have changed %s's weapon slot 1 to weapon ID %d.", arrFaction[iFac][g_szFactionName], weaponID);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
return 1;
}