23.09.2011, 16:10
i was using a global variable, however, after i switched to PVars, it worked aswell:
i was using a colored faction tag, and some other faction-depending stuff, the onplayertext was the simplest way to implement setting the team again and again..
Код:
public OnPlayerText(playerid, text[]){ new Faction=GetPVarInt(playerid,"Faction");//Faction got used a lot more times... SetPlayerTeam(playerid,Faction);//never caused problems here