SA-MP Forums Archive
command report - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: command report (/showthread.php?tid=303958)



command report - nigga'z - 16.12.2011

I need help on how to make a command in the dialog?
Код:
CMD:report(playerid, params[])
{
	new pID,pMsg[128],reason[128];
	if(sscanf(params, "us[128]", pID, reason)) return SendClientMessage(playerid, -1, "Usage: /report [id] [reason]");
	else if(pID == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "Invalid ID.");
	else if(pID == playerid) return SendClientMessage(playerid, -1, "You can't report yourself.");
	else
	{
		foreach(Player, a)
		{
		    if(GetPVarInt(a, "Admin") >= 1)
		    {
				format(pMsg, sizeof(pMsg), "Report: %s [%i] has reported %s [%i].", GetName(playerid), playerid, GetName(pID), pID);
				SendClientMessage(a, -1, pMsg);
				format(pMsg, sizeof(pMsg), "-%s", reason);
				SendClientMessage(a,-1, pMsg);
			}
		}
	}
	return 1;
}



Re : command report - BigBaws - 16.12.2011

Check Wiki Dialog Samp then you will understand how dude you need to add case's ..etc in your gamemode & good luck


Re: Re : command report - nigga'z - 16.12.2011

Quote:
Originally Posted by BigBaws
Посмотреть сообщение
Check Wiki Dialog Samp then you will understand how dude you need to add case's ..etc in your gamemode & good luck
can you help me? I need this


Re: command report - Jack_Leslie - 16.12.2011

What exactly do you need ?


Re: command report - nigga'z - 16.12.2011

I need help on how to make a command in the dialog style input


Re: command report - Michael@Belgium - 16.12.2011

ShowPlayerDialog() ??


Re: command report - BlackWolf120 - 16.12.2011

pawn Код:
//example for DIALOG_STYLE_INPUT
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Login","Enter your password below:","Login","Cancel");
https://sampwiki.blast.hk/wiki/ShowPlayerDialog