24.08.2012, 17:49
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
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