22.06.2015, 22:51
Really thank you guys for the replys, it helped me alot, but now i am wondering if its possible to make a PlayerInfo work with a Gamemode and filterscript?
must i use it like this?:
Gamemode:
Filterscript:
I want to get all player stats/infos known by the filterscript is this possible?
again thank you guys for helping me out
must i use it like this?:
Gamemode:
pawn Code:
//Gamemode
enum PlayerInfo
{
PlayerInfo[playerid][pAdmin]
}
new pInfo[MAX_PLAYERS][PlayerInfo];
forward getAllInfos(playerid);
public getAllInfos(playerid)
{
return pInfo[playerid][pAdmin];
}
pawn Code:
#define GetPlayerInfo(%0) CallRemoteFunction("getAllInfos", "i", %0)
//somewhere in script
GetPlayerInfo(playerid);//is there a way to not write this in the filterscript and it gets everything from the gamemode?
if(pInfo[playerid][pAdmin] >= 3)
{
//code
}
again thank you guys for helping me out