02.08.2017, 12:17
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:
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; }