Skripta koju koristim:Noobot
Detaljan opis problema: Pozdraw ljudi trebam skriptu ili komandu da ubacim u noobot mod da kad kucam neku komandu da uradi svima igracima level-up i isto tako za money-up molim vas ako mi mozete dati neku skritu da je ubacim u mod
Ovo ti je iz mog ako bude izbacivalo eror kazi if (strcmp(cmd, "/alvlup", true) == 0)
{
foreach (Player, i)
if(PlayerInfo[playerid][pAdmin] > 1338)
{
PlayerInfo[i][pLevel] +=1;
SendClientMessageToAll(COLOR_YELLOW,"[POKLON] Dobili ste 1 lvlup-a od admina!");
return 1;
}
else
{
SendClientMessage(playerid,COLOR_GRAD1,"Niste ovlasceni");
}
return 1;
}
Money-up if (strcmp("/agivemoneyall", cmdtext, true, 10) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1340)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /agivemoneyall [novac]");
return 1;
}
new money;
// tmp = strtok(cmdtext, idx);
money = strval(tmp);
foreach (Player, i)
{
SafeGivePlayerMoney(i,money);
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Dali ste svim igracima %d $",money);
SendClientMessage(playerid,COLOR_WHITE,string);
format(string, sizeof(string), "AdmCmd: %s je dao %d $ svim igracima",sendername,money);
SendClientMessageToAll(COLOR_BLUE,string);
}
else
{
SendClientMessage(playerid, COLOR_WHITE, " Niste ovlasteni da koristite tu komandu !");
}
}
return 1;
}