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:
Code:
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;
}