05.03.2009, 15:28
Its impossible (I just dont know any way) to make a script(my fs) which affect another script(your gm)
Here with that one now - http://pastebin.com/m423a641c
you can create your own playerlevel variable in your gamemode and use it
You just need to have a public called like the defined Remote_Function_Name (its in the first line of the fs)
and set there the level which get transfered, the default public name is PL_SetPlayerLevel
Here with that one now - http://pastebin.com/m423a641c
you can create your own playerlevel variable in your gamemode and use it
You just need to have a public called like the defined Remote_Function_Name (its in the first line of the fs)
and set there the level which get transfered, the default public name is PL_SetPlayerLevel
pawn Код:
new PlayerLevel[MAX_PLAYERS];
forward PL_SetPlayerLevel(playerid, level);
public PL_SetPlayerLevel(playerid, level)
PlayerLevel[playerid] = level;
//Now you can use the PlayerLevel for what you want
//to check if the player is under level 10
if(PlayerLevel[playerid] < 10) return SendClientMessage(playerid, 0xFFFFFFAA, "You need to be at least level 10 to use this command!");