PDA

View Full Version : Admin Icon? :confused:



Kevi
13th October 2016, 12:51
i have 1 zombie mod,and i want Admin,Leader and Vip icon :) Pls Help :D

maxdamage99
13th October 2016, 13:50
CodeCallBack_StartGameType()
{
/* */
precacheIcon("supaadmin"); //precaches icon names
precacheIcon("admin");
precacheIcon("vip");
/* */
}
CodeCallBack_PlayerConnect()
{
/* */
if(self getGUID()==000000) //guid supaadmin
self.supaaadmin=true;
else
if(self getGUID()==00000||self getGUID()==00001||self getGuid()==00002) //admin guids
self.admin=true;
else
if(self getguid()==0001||self getGUID()==00002) //vip guids
self.vip=true;
/* */
}
/////////////////////////////////////////////////////////////////
SpawnPlayer() //maybe other name func
{//spawn player
/* prev code */
if(self.supaadmin&&isDefined(self.supaadmin))
self.statusicon = "supaadmin"; //name icon maybe other (Images file *.iwi+material file no format)
else
if(self.ADMIN&&isDefined(self.admin))
self.statusicon = "admin";
else
if(self.vip&&isDefined(self.vip))
self.statusicon ="vip";
/* next code */
}

IzNoGoD
13th October 2016, 15:25
you typo'd supaaadmin