ShowPlayerDialog
#5

Just use the ZCMD include

pawn Код:
CMD:showrules(playerid,params[])
{
      if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,0xFF0000FF,"[ERROR]:- You Are not a rcon admin!");
      new player = strval(params):
      if(sscanf(params,"u",player))return SendClientMessage(playerid,0xFF0000FF,"[Useage]:- /showrules [id]");
      ShowPlayerDialog(player,DIALOG_WELCOME,DIALOG_STYLE_MSGBOX,"{FF6347}DriftUnitz RULES","{B4B5B7}Hacking or {FF6347}ANY {B4B5B7}other form of cheat is NOT tolerated here!\nHacking equals{FF6347}BAN! NO exceptions.\n{B4B5B7}No DeathMatching! Will result in jail. \nRespect EVERYONE!\nDon't Ask For {FF6347}[Admin] {B4B5B7}Status","OK","OK");
      new string[100];
      format(string,sizeof(string),"You Have Forced Id %d to see rules!",player);
      SendClientMessage(playerid,-1,string);
      return 1;
}
EDIT :- Lol is it true that i am slow

@antonio112 he wants the cmd for admin lol

put these lines if you are using dcmd in onplayercommandtext

pawn Код:
dcmd(showrules,9,cmdtext);
Reply


Messages In This Thread
ShowPlayerDialog - by Kudoz - 23.01.2013, 12:57
Re: ShowPlayerDialog - by FUNExtreme - 23.01.2013, 13:01
Re: ShowPlayerDialog - by antonio112 - 23.01.2013, 13:02
Re: ShowPlayerDialog - by Kudoz - 23.01.2013, 13:03
Re: ShowPlayerDialog - by -=Dar[K]Lord=- - 23.01.2013, 13:04
Re: ShowPlayerDialog - by antonio112 - 23.01.2013, 13:15
Re: ShowPlayerDialog - by Kudoz - 23.01.2013, 13:16
Re: ShowPlayerDialog - by antonio112 - 23.01.2013, 13:18
Re: ShowPlayerDialog - by Kudoz - 23.01.2013, 13:19
Re: ShowPlayerDialog - by Kudoz - 23.01.2013, 13:25

Forum Jump:


Users browsing this thread: 3 Guest(s)