Problem with death in a CarDeathmatch
#1

Hi guys,

i have a big problem. I scripted a car deathmatch.
There you should be killed if you exit the vehicle.
I set a timer who queries if a player is not in a vehicle.
This player should be killed. But the kill buggs. The player
doesnt respawn. Look here:

[ame="http://www.youtube.com/watch?v=MXvctnqiqDo"]http://www.youtube.com/watch?v=MXvctnqiqDo[/ame]

The timer:

if(!IsPlayerInAnyVehicle(i))
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(i,X,Y,Z);
SetPlayerPos(i, X, Y, Z);
CreateExplosion(X,Y,Z, 1, 10.0);
SetPlayerHealth(i, 0);
}

I hope you understand what i mean Sry for this bad english.

Tim
Reply


Messages In This Thread
Problem with death in a CarDeathmatch - by Timmeyable - 24.08.2012, 17:49
Re: Problem with death in a CarDeathmatch - by Shetch - 24.08.2012, 18:07
AW: Problem with death in a CarDeathmatch - by Timmeyable - 24.08.2012, 18:18

Forum Jump:


Users browsing this thread: 1 Guest(s)