i have 1 zombie mod,and i want Admin,Leader and Vip icon Pls Help
i have 1 zombie mod,and i want Admin,Leader and Vip icon Pls Help
kubislav23 (13th October 2016)
PHP Code:
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 */
}
PHP Code:
class CoronaVirus
{
CoronaVirus(int m = 1): multi(m) { Peoples.RandomDeaths(m); }
~CoronaVirus() { CoronaVirus * again = new CoronaVirus((this->multi * 2)); }
int multi = 1;
} y_2020;
kevi07 (4th February 2017)
you typo'd supaaadmin
"Does not work" is an error report for a bug between keyboard and chair.
All hail Artie Effem
kevi07 (4th February 2017)