Originally Posted by Salem75 You can use that code : Make new file on your mod adm.gsc and put ths : PHP Code: init() { level.vipPlayer = []; level.admPlayer = []; //vip level.vipPlayer[1] = 874632; level.vipPlayer[2] = 707693;}SetVip() { guid = self getGuid(); for(x=1; x<=level.vipPlayer.size; x++) { if(guid==level.vipPlayer[x]) { precachestatusIcon("gnnr_rank_pro_7"); self.statusicon = "gnnr_rank_pro_7"; // you can change value } }} Put on your mod.gsc : Thread maps\mp\gametypes\adm::init(); And put on onplayerspawn(); Thread maps\mp\gametypes\adm::setvip(); Lol this question since 1 year ago , sorry for answers now . You got waited much PLEASE put your precache in the appropriate (initialize) position. Not in a user-callable script.
init() { level.vipPlayer = []; level.admPlayer = []; //vip level.vipPlayer[1] = 874632; level.vipPlayer[2] = 707693;}SetVip() { guid = self getGuid(); for(x=1; x<=level.vipPlayer.size; x++) { if(guid==level.vipPlayer[x]) { precachestatusIcon("gnnr_rank_pro_7"); self.statusicon = "gnnr_rank_pro_7"; // you can change value } }}
"Does not work" is an error report for a bug between keyboard and chair. All hail Artie Effem
kung foo man (17th May 2018)
Forum Rules