SA-MP Forums Archive
[GameMode] Base GM - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Gamemode Scripts (https://sampforum.blast.hk/forumdisplay.php?fid=71)
+--- Thread: [GameMode] Base GM (/showthread.php?tid=337388)



Base GM - jujuv - 26.04.2012

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!




Re: Base GM - Maxim_lockas - 26.04.2012

Thanks for this Game Mode, good job !


Re: Base GM - HighPitchedVoice - 26.04.2012

Woaw, nice gamemode!


Re: Base GM - Derek_Westbrook - 26.04.2012

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


Re : Base GM - jujuv - 26.04.2012

Thank you (^_^)


Re : Base GM - jujuv - 26.04.2012

new version (0.3).
A big thanks to leo3412.


Re: Re : Base GM - Derek_Westbrook - 26.04.2012

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


Re : Base GM - Hadrien - 26.04.2012

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


Re : Base GM - jujuv - 26.04.2012

Ha oui TY.