23.01.2013, 13:04
Just use the ZCMD include
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 Код:
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;
}
@antonio112 he wants the cmd for admin lol
put these lines if you are using dcmd in onplayercommandtext
pawn Код:
dcmd(showrules,9,cmdtext);