cmd givemoney
#4

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

PHP код:
CMD:givemoney(playerid,params[])
{
    if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playerid0x33AA33AA"[BA:RP]Niste Ovlasceni!");
    new 
targetidvalue;
    if(
sscanf(params"ud"targetidvalue)) return SendClientMessage(playerid0x33AA33AA"[BA:RP]Koristi /givemoney [playerid] [money]");
    if(!
IsPlayerConnected(targetid)) return SendClientMessage(playerid0x33AA33AA"[BA:RP]Igrac nije online!");
    if(
IsPlayerAdmin(targetid))return SendClientMessage (playerid0x33AA33AA"[BA:RP]Niste Ovlasceni!");
    
GivePlayerMoney(targetidvalue);
    return 
1;
   

Reply


Messages In This Thread
cmd givemoney - by IceWizz - 12.04.2017, 06:20
Re: cmd givemoney - by Spoookymon - 12.04.2017, 06:27
Re: cmd givemoney - by Sikanderi - 12.04.2017, 08:30
Re: cmd givemoney - by DarkSkull - 12.04.2017, 09:24

Forum Jump:


Users browsing this thread: 1 Guest(s)