Spawnkill = Dead
#3

get a timestamp for each player who spawns,
like this:


global var for players:
sktime[MAX_PLAYERS]=0;

in onplayerspawn:
sktime[playerid] = gettime();

now in onplayertakedamage:
if(gettime() - sktime[playerid] < 60) return // 60 = 1 min. Here do something to the issuerid

that'd be 1 min anti spawnkill in this example


btw. this method using gettime will only work until January 19, 2038
Reply


Messages In This Thread
Spawnkill = Dead - by Blackazur - 21.12.2013, 16:15
Re: Spawnkill = Dead - by Konstantinos - 21.12.2013, 16:17
Re: Spawnkill = Dead - by CutX - 21.12.2013, 16:22
AW: Spawnkill = Dead - by Blackazur - 21.12.2013, 16:26
Re: Spawnkill = Dead - by CutX - 21.12.2013, 16:31
Re: Spawnkill = Dead - by MBilal - 21.12.2013, 16:33
AW: Spawnkill = Dead - by Blackazur - 21.12.2013, 16:34
Re: Spawnkill = Dead - by SilentSoul - 21.12.2013, 17:04
Re: Spawnkill = Dead - by NinjaWarrior - 21.12.2013, 17:57

Forum Jump:


Users browsing this thread: 1 Guest(s)