Give Kills All command isnt working as well
#1

Hi,
I just built a command to give kills to every one who connected, but It seems like its giving the kills only to ID 0'
and giving X2 kills more then what I wrote in the command.
the script:
Код:
CMD:givekillsall(playerid, params[])
{
	if(LevelAdmin(playerid) < 20) return 0;
	if(AdmLog[playerid] == false)return SendClientMessage(playerid,Red,"ERROR: айрк озебш мотшлъ агойрйн");
	new KillsNum;
	sscanf(params,"is[128]",KillsNum);
 	if(sscanf(params,"i",KillsNum)) return SendClientMessage(playerid,White,"Usage: /GiveKillsAll [Kills]");
	if(KillsNum < 0 || KillsNum > 2000) return SendClientMessage(playerid,Red,".ма рйъп мъъ йеъш о200 дшйвеъ млм дщшъ");
	foreach(new i: Player) if(logged[i] == true) pInfo [ i ] [ Kills ] = pInfo [ i ] [ Kills ] + KillsNum;
	format(String,sizeof(String),".ръп млм дщшъ {"#C_Grey"}%s {"#C_llBlue"}дшйвеъ {"#C_Grey"}%s {"#C_llBlue"}дагойп",GetNum(KillsNum),GetName(playerid));
	SendClientMessageToAll(llBlue, String);
	TextDrawHideForPlayer(playerid, ClickHard);
    return 1;
}
Reply


Messages In This Thread
Give Kills All command isnt working as well - by asafasaf - 02.08.2017, 12:17
Re: Give Kills All command isnt working as well - by oMa37 - 02.08.2017, 12:20
Re: Give Kills All command isnt working as well - by asafasaf - 02.08.2017, 12:46
Re: Give Kills All command isnt working as well - by FailerZ - 02.08.2017, 13:33
Re: Give Kills All command isnt working as well - by asafasaf - 02.08.2017, 13:52
Re: Give Kills All command isnt working as well - by FailerZ - 02.08.2017, 14:05
Re: Give Kills All command isnt working as well - by asafasaf - 02.08.2017, 14:44
Re: Give Kills All command isnt working as well - by asafasaf - 02.08.2017, 15:31

Forum Jump:


Users browsing this thread: 1 Guest(s)