[GameMode] Base GM
#1

Helo there,

Because i saw that many ones ddon't know how to do a simple clea code, i decided to make a basic optmized and clean GM.

This one was done for the French section and won't get translated by myself !

Latest InDev version:

Unammed

Latest stable realease:

V 0.3

Pastebin

DDL

MultiUpload

Library dudb is requied.

If you like my work, a rep' point is welcome \(>o<)/


ChangeLogs

Quote:

V 0.1 - 24/04/12 - Registering + Base Admin (kick, ban, TP, setadmin) + VoteKick + SafeGivePlayerMoney()
V 0.1.1 24/04/12 - +PM Spec for admins + Admins can set-up the server IG + autologin
V 0.2 - 25/04/12 - + Update system
V 0.3 - 26/04/12 - Optimizing with use of stock functions instead of public ones

Added Functions



Quote:
AreStringsEquals(string1, string2)
return: true if equals, false else.

Quote:
IsAdmin(playerid)
return: true if he's, false else.

Quote:
GetAdminRank(playerid)
Return adminRank.

Quote:
SetAdminRank(playerid, aRank)
Set player adminRank.

Quote:
SafeGivePlayerMoney(playerid, ammount)
...

Quote:
IsPlayerLoguedIn(playerid)
reurn: true if he's, false else.



Added Callbacks




Quote:
OnPlayerLogin(playerid)
Called on login sucefull (not called on login failed!)

Quote:
OnPlayerRegister(playerid)
ACalled on registering sucefull (not called on registering failed!)

Quote:
OnPlayerVoteKick(playerid)
Called when a player attemp "votekick"

Quote:
OnHTTPRespond(index, response_code, data[])
Called whenever HTTP() is called
See below thread(eng), samp wiki(eng).


To be sure to get the latest realese, please take a look at the French section!

Reply
#2

Thanks for this Game Mode, good job !
Reply
#3

Woaw, nice gamemode!
Reply
#4

Nice gamemode I checked the gamemodes and its code its pretty cool and your GM is clean..
Reply
#5

Thank you (^_^)
Reply
#6

new version (0.3).
A big thanks to leo3412.
Reply
#7

Quote:
Originally Posted by jujuv
Посмотреть сообщение
new version (0.3).
A big thanks to leo3412.
No problem.BTW Nice codes
Reply
#8

Tu as oubliйe de traduire une phrase: "Lorsqu'un joueur tente un "votekick""
Reply
#9

Ha oui TY.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)