[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


Messages In This Thread
Base GM - by jujuv - 26.04.2012, 02:51
Re: Base GM - by Maxim_lockas - 26.04.2012, 11:45
Re: Base GM - by HighPitchedVoice - 26.04.2012, 11:53
Re: Base GM - by Derek_Westbrook - 26.04.2012, 12:19
Re : Base GM - by jujuv - 26.04.2012, 16:53
Re : Base GM - by jujuv - 26.04.2012, 17:23
Re: Re : Base GM - by Derek_Westbrook - 26.04.2012, 17:47
Re : Base GM - by Hadrien - 26.04.2012, 18:48
Re : Base GM - by jujuv - 26.04.2012, 18:50

Forum Jump:


Users browsing this thread: 1 Guest(s)