ShowPlayerDialog(playerid,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");
Hello! I just need a little help!
Is this almost like a kick cmd? With a TargetId and stuff? |
CMD:showrules(playerid, params[])
{
new pID;
if(sscanf(params, "u", pID))
return SendClientMessage(playerid, -1, "Usage: /showrules [PlayerID]");
if(!IsPlayerConnected(pID))
return SendClientMessage(playerid, -1, "Selected player is not CONNECTED.");
SendClientMessage(playerid, -1, "Rules dialog processed.");
ShowPlayerDialog(pID,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");
return 1;
}
C:\Users\daniel\Desktop\DriftUnitZ\filterscripts\LuxAdmin.pwn(12246) : warning 203: symbol is never used: "dcmd_showrules"
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;
}
dcmd(showrules,9,cmdtext);
C:\Users\daniel\Desktop\DriftUnitZ\filterscripts\LuxAdmin.pwn(5098) : error 001: expected token: ";", but found ":" C:\Users\daniel\Desktop\DriftUnitZ\filterscripts\LuxAdmin.pwn(5098) : error 029: invalid expression, assumed zero C:\Users\daniel\Desktop\DriftUnitZ\filterscripts\LuxAdmin.pwn(5098 -- 5099) : warning 215: expression has no effect C:\Users\daniel\Desktop\DriftUnitZ\filterscripts\LuxAdmin.pwn(5099) : error 001: expected token: ";", but found "if" C:\Users\daniel\Desktop\DriftUnitZ\filterscripts\LuxAdmin.pwn(5099) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
dcmd_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,"[Usage]:- /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 jstring[128]; new AdminName[MAX_PLAYER_NAME]; new Target[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername, sizeof(playername)); format(jstring, sizeof(jstring), ".: [{B4B5B7}Admin{9ACD32}] ( {B4B5B7}%s {9ACD32}) {B4B5B7}has showed the Rules to {9ACD32}( {B4B5B7}%s {9ACD32}) {9ACD32}:.", AdminName, Target); SendClientMessageToAll(COLOR_GREEN, jstring); return 1; }
new player = strval(params): if(sscanf(params,"u",player))return SendClientMessage(playerid,0xFF0000FF,"[Usage]:- /showrules [id]");
C:\Users\daniel\Desktop\DriftUnitZ\filterscripts\LuxAdmin.pwn(5100) : error 017: undefined symbol "sscanf" C:\Users\daniel\Desktop\DriftUnitZ\filterscripts\LuxAdmin.pwn(5105) : error 017: undefined symbol "id" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.