SA-MP Forums Archive
Connecting FS with 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Connecting FS with GM (/showthread.php?tid=592137)



Connecting FS with GM - SalmaN97 - 20.10.2015

Hello guys i know its possible but i dont know how to do it i read some topics and tutorials but still i just want to use my admin level variable PlayerInfo[playerid][pAdmin]


thanks


Re: Connecting FS with GM - jlalt - 20.10.2015

PHP код:
enum info
{
pAdmin
};
PlayerInfo[MAX_PLAYERS][info]; 
Then on player request spawn or on player spawn check if he logged in by enter hes files and load hes level you can find them all in gamemode! xp


Re: Connecting FS with GM - Jefff - 20.10.2015

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


Re: Connecting FS with GM - SalmaN97 - 21.10.2015

Quote:
Originally Posted by Jefff
Посмотреть сообщение
i did as the guy did but when i do this :

PHP код:
#define GetPlayerInfo(%0) CallRemoteFunction("getAllInfos", "i", %0)
//somewhere in script
GetPlayerInfo(playerid);// i get error here saying undefined symbol but i defined it already
if(pInfo[playerid][pAdmin] >= 3
{
//code




Re: Connecting FS with GM - Gammix - 21.10.2015

Use PVars instead of arrays in both of your scripts (FS and GM).

pawn Код:
//in your filterscipt
SetPVarInt(playerid, "AdminLevel", 1);

//in your gamemode
GetPVarInt(playerid, "AdminLevel");