[HELP]Admin Script

snaptrap

Active member
Joined
Feb 7, 2014
Messages
56
Reaction score
1
How To Make  Admin System With A Level....Just Simple.. :yuno:
 

not490

Well-known member
Joined
Feb 8, 2014
Messages
438
Reaction score
4
http://pastebin.com/dmhF6wMZ
It,s pure script, and it should work.

Be sure you have these incs
Code:
<a_samp>
<sscanf2>
<zcmd>
<gLibrary>
If you dont have and dont know where to get, i can teach you to make includes.

COMMANDS!!
Code:
Player          (Level 0):
   Command:        Parameters:                        Explaination:
     /admins         none                             Lists all online administrator
     /changepassword [oldpassword] [newpassword]      Allows the player to change his password
     /stats          none                             Rettreive's playerstats
     /whois          playerid                         Rettreive's information about a player
     /whowas         playername                       Rettreive's information about a player
     /report         [player] [reason]                Reports another player (this will be shown to online admins and in Rcon console)

Moderator     (Level 1):
   Command:        Parameters:                        Explaination:
     /countdown      none                             Starts a countdown
     /acmds          none                             Shows all admin commands
     /a              [text]                           Adminchat
     /whois          [player]                         Rettreive information about given player
     /announce       [text]                           Announce a message
     /spectate       [player]                         Spectate player
     /stop           none                             Stops spectating player
     /disarm         [player]                         Resets player weapons of player
     /mute           [player] [reason (optional)]     Mutes player
     /unmute         [player]                         Unmutes player
     /freeze         [player] [reason (optional)]     Freezes player
     /unfreeze       [player]                         Unfreezes player
     /jail           [player] [reason (optional)]     Jails player
     /unjail         [player]                         Unjails player
     /kick           [player] [reason (optional)]     Kicks player

Administrator   (Level 2):
     Command:        Parameters:                      Explaination:
      /veh             [vehiclename]                  Spawns a vehicle for the admin
      /get             [player]                       Teleports given player to the admin
      /goto            [player]                       Teleports admin to the given player
      /giveweapon      [player][weaponid][ammo]       Gives weapon to given player
      /setmoney        [player][ammount]              Changes money of player
      /setscore        [player][ammount]              Changes score of player
      /explode         [player]                       Explodes player
      /ban             [player] [reason (optional)]   Bans the player
      /banip           [ip]                           Bans the player
      /annoy           [player]                       Releases a cow on the player! (Known from Hiddos's annoying cow script)
      /catchcow                                       Removes released cow

Owner            (Level 3):
     Command:        Parameters:                      Explaination:
     /setlevel         [player][level]                Adjust the rights of the player (Level 0/3)
     /unbanip          [ip]                           Unbans the player*/
 

snaptrap

Active member
Joined
Feb 7, 2014
Messages
56
Reaction score
1
I just learn how to make admin system using ini ...its very easy and simplr...can u teach me how to make include to script easier!    :yesyes:
 

not490

Well-known member
Joined
Feb 8, 2014
Messages
438
Reaction score
4
Yes i can.
Code:
#if defined _iggy_included
    #endinput
#endif
#define _iggy_included

#if defined _"iggy"_included
    #endinput
#endif
#define _iggy_included

This iggy is the include you are going to make, it can be "sscanf" or any other include you wanna make.

Okay, you open pawn, take blank site, remove all text if you got any, then paste this there
Code:
#if defined _iggy_included
    #endinput
#endif
#define _iggy_included
  But change that iggy what ever else inc your going to make,
then compile it on your desktop, and now you will see ready inc file. Pretty easy huh ?
Now just copy it from desktop and paste in ur Pawn--Includes.
 

snaptrap

Active member
Joined
Feb 7, 2014
Messages
56
Reaction score
1
I just Get An Error When I Compile The Script 

error 013: no entry point (no public functions)

:yuno:
 

.silent

Well-known member
Joined
Apr 14, 2013
Messages
339
Reaction score
13
You need to add main() {}, and you don't compile includes, which is why they are called includes -.- They are included to the source code by the compiler (some people upload includes to their server hostings together with the gamemode AMX file, this is wrong ! Unless you want your includes stolen. After compiling the gamemode the includes are compiled together with it.)
 

not490

Well-known member
Joined
Feb 8, 2014
Messages
438
Reaction score
4
Put example: sscanf.inc when you save it  :face_palm: 
 

MetaNix.

Member
Joined
Mar 2, 2014
Messages
18
Reaction score
0
.silent link said:
You need to add main() {}, and you don't compile includes, which is why they are called includes -.- They are included to the source code by the compiler (some people upload includes to their server hostings together with the gamemode AMX file, this is wrong ! Unless you want your includes stolen. After compiling the gamemode the includes are compiled together with it.)

The man's Right  :urtheman:
 
Top