17.05.2011, 12:01
here is the command but its not work! when i do /setkill 0 1 its give me 50 kill not 1
Код:
dcmd_setkills(playerid,params[]) { if(Player[playerid][admin] < 3)return 0 new pID, str[128], str1[128], str2[128], aname[24], pname[24], playerfile[100]; new Kills = Player[pID][Kills]; GetPlayerName(pID,pname,sizeof(pname)); GetPlayerName(playerid,aname,sizeof(aname)); format(playerfile,sizeof(playerfile),"Lsgw/Users/%s.ini",pname); if(!IsPlayerConnected(pID)) return 0 if(sccanf(params,"us",pID,Kills) return SendClientMessage(playerid,COLOR_GREY,"|| Usage: /setkills [playerid] [kils] ||"); dini_IntSet(playerfile,"Kills",Kills); return 1; }