PDA

View Full Version : command report


nigga'z
16/12/2011, 10:38 AM
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;
}

BigBaws
16/12/2011, 10:41 AM
Check Wiki Dialog Samp then you will understand how dude you need to add case's ..etc in your gamemode & good luck

nigga'z
16/12/2011, 11:21 AM
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

Jack_Leslie
16/12/2011, 11:24 AM
What exactly do you need ?

nigga'z
16/12/2011, 11:25 AM
I need help on how to make a command in the dialog style input

Michael@Belgium
16/12/2011, 01:27 PM
ShowPlayerDialog() ??

BlackWolf120
16/12/2011, 01:31 PM
//example for DIALOG_STYLE_INPUT
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Login","Enter your password below:","Login","Cancel");


http://wiki.sa-mp.com/wiki/ShowPlayerDialog