Moze lock , hvala
if (strcmp("/charity", cmdtext, true, 10) == 0)
{
if(IsPlayerConnected(playerid))
{
if (OVDJE IDE PERMISIJA(AKO TI TREBA UOPCE))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /charity [novac]");
return 1;
}
new money;
money = strval(tmp);
foreach (Player, i)
{
GivePlayerMoney(i,money);
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "OVDJE PISES STA DA IZBACI ONOME KOJI JE DONIRAO",money);
SendClientMessage(playerid,COLOR_WHITE,string);
format(string, sizeof(string), "OVDJE PISES KO JE DONIRAO I KOLIKO",sendername,money);
SendClientMessageToAll(COLOR_BLUE,string);
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "AKO SI STAVIO PERMISIJU OVDJE PISI STA CE IZBACITI ONOME KO NIJE OVLASTEN DA KORISTI TU KOMANDU");
}
}
return 1;
}
dali bi mogao YCMD , hvala
Poslano ti je u PM, gdje si i trazio :)