i have done my first TDM gamemode but i need to do 2 more commands its /setkills /setdeaths i cant do it what is i need when i use /setkills change the kills to other players mean the stats!
This forum requires that you wait 120 seconds between posts. Please try again in 40 seconds.
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;
}