12.04.2017, 09:24
You guys should check his code before replying. You use IsPlayerAdmin wrong. IT only checks for Rcon admin. It doesn't have any level. Then, Once you return something, That if is closed. You don't have to go on opening the brackets again.
This should work
This should work
PHP код:
CMD:givemoney(playerid,params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0x33AA33AA, "[BA:RP]Niste Ovlasceni!");
new targetid; value;
if(sscanf(params, "ud", targetid, value)) return SendClientMessage(playerid, 0x33AA33AA, "[BA:RP]Koristi /givemoney [playerid] [money]");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0x33AA33AA, "[BA:RP]Igrac nije online!");
if(IsPlayerAdmin(targetid))return SendClientMessage (playerid, 0x33AA33AA, "[BA:RP]Niste Ovlasceni!");
GivePlayerMoney(targetid, value);
return 1;
}