11.05.2013, 11:08
Hey this is my command I've transferd to the script with no zcmd , And the only one errors iis that :
Код:
Undefinde symbol Params...
Код:
if(strcmp(cmd, "/revive", true) == 0) { if(PlayerInfo[playerid][pAdmin] >= 3) { new string[128], giveplayerid; if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /revive [playerid]"); if(IsPlayerConnected(giveplayerid)) { if(GetPVarInt(giveplayerid, "Injured") == 1) { format(string, sizeof(string), " You have revived %s.", GetPlayerName(giveplayerid)); SendClientMessage(playerid, COLOR_WHITE, string); SendClientMessage(giveplayerid, COLOR_WHITE, "You have been revived by an Admin."); ClearAnimations(giveplayerid); SetPlayerHealth(giveplayerid, 100); } else { SendClientMessage(playerid, COLOR_GRAD2, "That player is not injured!"); } } } else { SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command!"); } return 1; }