is this right?
#1

Код:
CMD:toys(playerid,params[])
{
    if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_CUFFED)
    {
		return	SendClientMessage(playerid, 0xFFFFFFFF, "You Cant Use This Command.");
    }
	new string[128];
	new dialog[500];
	for(new x;x<MAX_OSLOTS;x++)
	{
        if(IsPlayerAttachedObjectSlotUsed(playerid, x))
		{	format(string, sizeof(string), ""COL_WHITE"Slot:%d :: "COL_GREEN"Used Slot\n", x);    }
		else format(string, sizeof(string), ""COL_WHITE"Slot:%d\n", x);
		strcat(dialog,string);
   	}
   	ShowPlayerDialog(playerid, DIALOG_ATTACH_INDEX_SELECTION, DIALOG_STYLE_LIST,"Player Objects/Attachment: (Select Slot)", dialog, "Select", "Close(X)");
	return 1;
}
is this right,if the player is cuffed he/she cant use /toys command?
Reply


Messages In This Thread
is this right? - by PowerF - 08.08.2015, 12:29
Re: is this right? - by AIped - 08.08.2015, 12:32
Re: is this right? - by PowerF - 08.08.2015, 12:46
Re: is this right? - by zT KiNgKoNg - 08.08.2015, 12:52
Re: is this right? - by PowerF - 08.08.2015, 13:30

Forum Jump:


Users browsing this thread: 1 Guest(s)