ZCMD Help
#2

pawn Код:
CMD:givemoney(playerid, params[])
{
    new targetid,type,string[128];
    if(sscanf(params, "ui", targetid, type)) return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: {FFFFFF}/givemoney [playerid] [amount]");
    if(IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_GREY, "* This player is not in server..");
    if(type < 0 || type > 99999999) return SendClientMessage(playerid, COLOR_GREY, "* Cannot go under 0 or above 99999999.");
    if(PlayerInfo[playerid][pAdmin] < 6) return SendClientMessage(playerid, COLOR_GRAD1, "You are not ADMIN!");

    GivePlayerCash(targetid, type);
    format(string, sizeof(string),"AdmCmd: %s give player %s %d SAK", RPName( playerid ), RPName( targetid ), type);
    SendAdminMessage(COLOR_YELLOW,string);
    return 1;
}
Just remove the Exclamation point at the first of IsPlayerConnected(targetid))
Reply


Messages In This Thread
ZCMD Help - by rexarlet - 13.08.2012, 13:46
Re: ZCMD Help - by ToiletDuck - 13.08.2012, 13:56
Re: ZCMD Help - by Snipa - 13.08.2012, 14:36
Re: ZCMD Help - by rexarlet - 13.08.2012, 21:40
Re : ZCMD Help - by Sandiel - 13.08.2012, 22:06

Forum Jump:


Users browsing this thread: 1 Guest(s)