giveitem doesnt work
#2

pawn Код:
CMD:giveitem(playerid,params[])
{
    if(pInfo[playerid][pAdminLevel] >= 6)
    {
        new targetid,amount,string[64];
        if(sscanf(params, "ris[64]", targetid,amount,string)) return SendClientMessage(playerid,-1,""chat" /giveitem [id] [amount] [item name]");
        if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
        AddSlotToInventoryWorld(targetid,string,amount);
        new str[144];
        format(str,sizeof(str),"*"COL_YELLOW" %s %s has given you "COL_WHITE"%i"COL_GREEN" %s",GetAdminName(playerid),PlayerName(playerid), amount, string);
        SendClientMessage(targetid,-1,str);
    }
    return 1;
}
Reply


Messages In This Thread
giveitem doesnt work - by Voxel - 17.10.2013, 09:02
Re: giveitem doesnt work - by Konstantinos - 17.10.2013, 09:06
Re: giveitem doesnt work - by Blademaster680 - 17.10.2013, 09:06
Re: giveitem doesnt work - by Voxel - 17.10.2013, 09:09

Forum Jump:


Users browsing this thread: 1 Guest(s)