[FilterScript] S32_Admin
#1

Introduction

Hi all

I started creating this admin system because I saw a lot of good admin system and I wanted my own to make!
This admin system is not so good (I mean there is no a lot of features like LuxAdmin, Z-Admin, 0Admin...)
So these are some basics, admin system is for stunt server but you can edit it for RP (I mean a there is no a lot of commands for RP mods, everything was scripted for stunt servers because I'm building my own stunt server!)
Have fun and enjoy!



Features
  • Register and login in dialogs using MySQL
  • Commands for players
  • A lot of commands for admins
  • 3 admin levels: Gamemaster, administrator & head!
  • Custom ban system

Necessary things

MySQL Plugin by G-Stylezz aka BlueG
y_commands by ******
sscanf by ******
foreach by ******



Download

Pastebin (v1.0.0)


Mediafire (v1.0.0)


Solidfiles (v1.0.0)



Credits
  • System32 - Almost everything!
  • The Guy - Helped me a lot, thank you!
  • ****** - y_commands, sscanf & foreach!
  • G-Stylezz (BlueG) - MySQL plugin!
Reply
#2

n1 keep it up, i cant wait for Busnines
Reply
#3

yea.....we need a business !
Reply
#4

Thank you,
What I have in my plan:
S32_Bussines, S32_VOS (Carownership, Bikeownership, boatownership, planeownership, heliownership...), S32_Factions
Reply
#5

it's a nice script dude amazing
Reply
#6

Great Work.
Reply
#7

thanks guys
Reply
#8

pawn Код:
YCMD:stats(playerid, params[], help)
{
    #pragma unused help
    #pragma unused params
    new largestring[400];
    format(largestring, sizeof(largestring), "Money: %d\nScore: %d\nKills: %d\nDeaths: %d\nWarns: %d", GetPlayerMoney(playerid), GetPlayerScore(playerid), PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths], PlayerInfo[playerid][pWarns]);
        ShowPlayerDialog(playerid, 8, DIALOG_STYLE_MSGBOX, "   Your stats", largestring, "Ok", "");
    return 1;
}
Make it 128 cells, no way theres going to be a digit 10000000000000000000000000 big
Reply
#9

My god what I'm doing, eh people can change it easily, I won't upload it again for one little thing
Reply
#10

Didnt tested script just took fast look over the code and i like it cos its clean and simple

I just suggest you to move DB files into scriptfiles folder cos newbies can get confused
And i think you use old YSI so take a look maybe im wrong but i think im not
Reply
#11

umm, try this, I've uplaoded 'mine version' of rBits

http://solidfiles.com/d/d4affae5d4/
Reply
#12

Quote:
Originally Posted by System64
View Post
umm, try this, I've uplaoded 'mine version' of rBits

http://solidfiles.com/d/d4affae5d4/
no more crashes but now

Code:
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\pawno\include\YSI\y_utils.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\pawno\include\YSI\y_utils.inc(310) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\pawno\include\YSI\y_utils.inc(342) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\pawno\include\YSI\y_utils.inc(360) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\filterscripts\S32_Admin.pwn(545) : error 017: undefined symbol "sscanf"
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\filterscripts\S32_Admin.pwn(556) : error 017: undefined symbol "sscanf"
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\filterscripts\S32_Admin.pwn(566) : error 017: undefined symbol "sscanf"
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\filterscripts\S32_Admin.pwn(588) : error 017: undefined symbol "sscanf"
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\filterscripts\S32_Admin.pwn(651) : error 017: undefined symbol "sscanf"
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\filterscripts\S32_Admin.pwn(671) : error 017: undefined symbol "sscanf"
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\filterscripts\S32_Admin.pwn(694) : error 017: undefined symbol "sscanf"
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\filterscripts\S32_Admin.pwn(715) : error 017: undefined symbol "sscanf"
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\filterscripts\S32_Admin.pwn(736) : error 017: undefined symbol "sscanf"
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\filterscripts\S32_Admin.pwn(757) : error 017: undefined symbol "sscanf"
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\filterscripts\S32_Admin.pwn(778) : error 017: undefined symbol "sscanf"
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\filterscripts\S32_Admin.pwn(796) : error 017: undefined symbol "sscanf"
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\filterscripts\S32_Admin.pwn(819) : error 017: undefined symbol "sscanf"
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\filterscripts\S32_Admin.pwn(842) : error 017: undefined symbol "sscanf"
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\filterscripts\S32_Admin.pwn(860) : error 017: undefined symbol "sscanf"
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\filterscripts\S32_Admin.pwn(889) : error 017: undefined symbol "sscanf"
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\filterscripts\S32_Admin.pwn(949) : error 017: undefined symbol "sscanf"
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\filterscripts\S32_Admin.pwn(986) : error 017: undefined symbol "sscanf"
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\filterscripts\S32_Admin.pwn(1061) : error 017: undefined symbol "sscanf"
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\filterscripts\S32_Admin.pwn(1077) : error 017: undefined symbol "sscanf"
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\filterscripts\S32_Admin.pwn(1093) : error 017: undefined symbol "sscanf"
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\filterscripts\S32_Admin.pwn(1135) : error 017: undefined symbol "sscanf"
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\filterscripts\S32_Admin.pwn(1148) : error 017: undefined symbol "sscanf"
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\filterscripts\S32_Admin.pwn(1167) : error 017: undefined symbol "sscanf"
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\filterscripts\S32_Admin.pwn(1184) : error 017: undefined symbol "sscanf"
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\filterscripts\S32_Admin.pwn(1229) : error 017: undefined symbol "sscanf"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
:S idk why

edit: could you upload a package ?
Reply
#13

add on top of my script:

Code:
native sscanf(const data[], const format[], {Float,_}:...);
native unformat(const data[], const format[], {Float,_}:...) = sscanf;
Reply
#14

Quote:
Originally Posted by System64
View Post
add on top of my script:

Code:
native sscanf(const data[], const format[], {Float,_}:...);
native unformat(const data[], const format[], {Float,_}:...) = sscanf;
no errors now, just some warnings about the string

Code:
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\pawno\include\YSI\y_utils.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\pawno\include\YSI\y_utils.inc(310) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\pawno\include\YSI\y_utils.inc(342) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme Racing\pawno\include\YSI\y_utils.inc(360) : warning 219: local variable "string" shadows a variable at a preceding level
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Warnings.
im just gonna test tosee if it works

EDIT: dosent work
Reply
#15

press ctrl + h and in search for set string, replace with set s32_string
Reply
#16

Quote:
Originally Posted by System64
View Post
press ctrl + h and in search for set string, replace with set s32_string
Code:
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme racing\filterscripts\S32_Admin.pwn(232) : error 017: undefined symbol "mysql_real_escape_s32_string"
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme racing\filterscripts\S32_Admin.pwn(243) : error 017: undefined symbol "mysql_real_escape_s32_string"
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme racing\filterscripts\S32_Admin.pwn(900) : error 017: undefined symbol "TextDrawSets32_string"
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme racing\filterscripts\S32_Admin.pwn(902) : error 017: undefined symbol "TextDrawSets32_string"
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme racing\filterscripts\S32_Admin.pwn(904) : error 017: undefined symbol "TextDrawSets32_string"
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme racing\filterscripts\S32_Admin.pwn(1448) : error 017: undefined symbol "mysql_real_escape_s32_string"
C:\Documents and Settings\tyler12\Desktop\ET STUFF\Extreme racing\filterscripts\S32_Admin.pwn(1740) : error 017: undefined symbol "mysql_real_escape_s32_string"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


7 Errors.
Reply
#17

oh shit, press ctrl + z if you didn't closed the script, now press ctrl + h and set options like this



also next time try to solve that errors, not immediately post error in topic -.-
Reply
#18

Quote:
Originally Posted by System64
View Post
oh shit, press ctrl + z if you didn't closed the script, now press ctrl + h and set options like this



also next time try to solve that errors, not immediately post error in topic -.-
thats done, now i got the mysql plugin and the its just saying the samp-server.exe

Code:
[13:34:38] 
[13:34:38] Server Plugins
[13:34:38] --------------
[13:34:38]  Loading plugin: mysql
[13:34:38]  SA:MP MySQL Plugin v2.1.1 Loaded.
[13:34:38]   Loaded.
[13:34:38]  Loaded 1 plugins.

[13:34:38] [MySQL] Thread running. Threadsafe: Yes.
[13:34:38] 
[13:34:38] Filterscripts
[13:34:38] ---------------
[13:34:38]   Loading filterscript 'S32_Admin.amx'...
[13:34:38]   Loaded 1 filterscripts.
and is not working in game
Reply
#19

https://sampforum.blast.hk/showthread.php?tid=56564

download R7
Reply
#20

Quote:
Originally Posted by System64
View Post
theres only a r7 source
i have already downloaded r6-2

also is it "s32_string" or "s32string"?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)