08.08.2011, 21:32
What? Type /adcmds in game, that'll explain everything. But just to prove to you:
It's all there. ALL Of it. Don't say you can't use it. It's there. Fully tested.
And, @GodHimself: I made this thing from scratch. I didn't copy/paste code into it. I made it from Scratch.. using parts of Stevo127's SFCRRPG script as a guide, since it was my first script of such magnitude. Not once did I copy/paste code, or copy it directly.
Mariosv: Look at the previous posts. I answered the "HOW TO MAKE SOMEONE ADMIN" thing. Just edit the player file: "AdminLevel=0" to "AdminLevel=1337" When you login/register, it creates a file named (PLAYERNAME).dudb.sav
Open that in notepad. Edit the lines. Simple.
Make sure you have a "Scriptfiles" folder. If you don't, I don't think it'll save.
And thanks guys, didn't think this was that good. I know there's a few bugs, but since I started school back, I'll work on them when I get the time. Continue having fun with it, expect an update soon.. if I get around to it.
Code:
cmd(adkick, playerid, params[]) { new ID; new pname[24]; new string[120]; new opname[24]; new reason; if(GetPVarInt(playerid, "AdminLevel") == 0) return 0; if(sscanf(params, "uz", ID, reason)) return SendClientMessage(playerid, COLOR_ERROR, "Usage: /adkick (ID) (reason)"); if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID."); GetPlayerName(playerid, pname,24); GetPlayerName(ID, opname, 24); format(string, 120, "[ADMIN KICK] %s(%d) %s", opname, ID, reason); SendClientMessageToAll(COLOR_ADMIN, string); IRC_Say(gGroupID, IRC_CHANNEL, string); format(string, 120, "[ADMIN ACTION] Admin %s(%d) has kicked %s(%d) %s", pname, playerid, opname, ID, reason); SendAdminMessage(string); IRCAdmin(string); Kick(ID); return 1; } cmd(adban, playerid, params[]) { new ID; new pname[24]; new string[120]; new opname[24]; new reason; if(GetPVarInt(playerid, "AdminLevel") == 0) return 0; if(sscanf(params, "uz", ID, reason)) return SendClientMessage(playerid, COLOR_ERROR, "Usage: /adban (ID) (reason)"); if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_ERROR, "Invalid ID."); GetPlayerName(playerid, pname,24); GetPlayerName(ID, opname, 24); format(string, 120, "[ADMIN BAN] %s(%d) %s", opname, ID, reason); SendClientMessageToAll(COLOR_ADMIN, string); IRC_Say(gGroupID, IRC_CHANNEL, string); format(string, 120, "[ADMIN ACTION] Admin %s(%d) has banned %s(%d) %s", pname, playerid, opname, ID, reason); SendAdminMessage(string); IRCAdmin(string); SendClientMessage(ID, COLOR_RED, "You have been Admin Banned. If you wish to appeal this ban, go to our website."); SendClientMessage(ID, COLOR_RED, "Please note that Hackers do not get unbanned."); format(string, 120, "Banned by %s for the reason of: %s", pname, reason); BanEx(ID, string); return 1; }
And, @GodHimself: I made this thing from scratch. I didn't copy/paste code into it. I made it from Scratch.. using parts of Stevo127's SFCRRPG script as a guide, since it was my first script of such magnitude. Not once did I copy/paste code, or copy it directly.
Mariosv: Look at the previous posts. I answered the "HOW TO MAKE SOMEONE ADMIN" thing. Just edit the player file: "AdminLevel=0" to "AdminLevel=1337" When you login/register, it creates a file named (PLAYERNAME).dudb.sav
Open that in notepad. Edit the lines. Simple.
Make sure you have a "Scriptfiles" folder. If you don't, I don't think it'll save.
And thanks guys, didn't think this was that good. I know there's a few bugs, but since I started school back, I'll work on them when I get the time. Continue having fun with it, expect an update soon.. if I get around to it.