command report
#1

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;
}
Reply
#2

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

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
Reply
#4

What exactly do you need ?
Reply
#5

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

ShowPlayerDialog() ??
Reply
#7

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)