Connecting FS with GM
#1

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
Reply
#2

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
Reply
#3

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

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

Reply
#5

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");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)