SA-MP Forums Archive
Question... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: General (https://sampforum.blast.hk/forumdisplay.php?fid=13)
+--- Thread: Question... (/showthread.php?tid=637825)



Question... - Sting. - 22.07.2017

I just have a silly question to know something. If I asked someone to create an Admin system for me, and in my own gamemode, for example if I wanted to implement a command but to check whether his admin, can I do it? Not RCON admin but the custom admin FS? Here's an example, say the FS admin is called bAdmin, so if I include it in my GM, and the function that checks the player is IsPlayerBadmin = 1 otherwise it will show some else Client message, can it be done? Can I include it on my GM and then create a command with that function that checks the player whether he is a bAdmin and then execute the command otherwise, show's him the else message.

P.S, I know this sounds like quite a stupid question, but I just have to be sure. Thanks in advance.


Re: Question... - Vince - 22.07.2017

Yes, it's quite simple and there are at least three ways to do it (properties, PVars or CallRemoteFunction).


Re: Question... - Sting. - 22.07.2017

Ok thanks Vince for sharing some light on the matter at hand. Thanks.


Re: Question... - Kaperstone - 22.07.2017

Beware of properties tho
http://forum.sa-mp.com/showpost.php?...1&postcount=33