11.12.2014, 12:57
pawn Код:
return wepstr;
pawn Код:
CMD:getweapons(playerid, params[])
{
* * new string[128], pID, *pname[MAX_PLAYER_NAME];
* * if(pInfo[playerid][Level] < 1) return 0;
* * if(sscanf(params, "u", pID)) return SendClientMessage(playerid, 0xFF0000AA, "[USAGE]: /getweapons");
* * GetPlayerName(pID, pname, sizeof(pname));
* * format(string, sizeof(string), "============ Checking %s's Current Weapons =============", pname);
* * SendClientMessage(playerid, 0xFF0000AA, string);
* * for(new i; i< 12; i++)
* * {
* * * * GetPlayerWeaponData(pID, i, pgun[i][0]);
* * * * format(string ,sizeof(string), "[WEAPON: %s][AMMO: %d]", guns[pgun[i][0]], guns[pgun[i][1]]);
* * * * SendClientMessage(playerid, 0xFF0000AA, string);
* * }
* * return 1;
}