02.12.2013, 07:24
listen I added this script and when I typing /fg it must give me full weapons set and armor, but it write in the game "invalid player specified",
what should I do?
(Role Play server)
what should I do?
(Role Play server)
Код:
CMD:fg(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 8) { new giveplayerid; if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /fg(fullgear) [playerid]"); if(IsPlayerConnected(giveplayerid)) { SetPlayerHealth(giveplayerid, 100); SetPlayerArmour(giveplayerid, 100); GivePlayerValidWeapon(giveplayerid, 27, 60000); GivePlayerValidWeapon(giveplayerid, 24, 60000); GivePlayerValidWeapon(giveplayerid, 31, 60000); GivePlayerValidWeapon(giveplayerid, 34, 60000); GivePlayerValidWeapon(giveplayerid, 29, 60000); return 1; } } else SendClientMessageEx(playerid, COLOR_GRAD1, "Invalid player specified."); return 1; }