31.07.2010, 18:42
Okay, so I have a script that when you spawn you will
be immediately be inside a vehicle :
Like so. Now I know that putting -1 will not respawn it rite?
But here's the problem :
When the vehicle explodes, and I die of course, then spawn again
I spawn with that vehicle but that vehicle spawns another one.
How can I make it not spawn another one when the vehicle explodes?
be immediately be inside a vehicle :
pawn Код:
public OnPlayerSpawn(playerid)
{
SetTimerEx("Timer", 2000, false, "i", playerid);
TogglePlayerControllable(playerid, 1);
return 1;
}
forward Timer(playerid);
public Timer(playerid)
{
new Float:x, Float:y, Float:z;
TogglePlayerControllable(playerid, 0);
PutPlayerInVehicle(playerid, CreateVehicle(510, x, y, z, 0, -1, -1, -1), 0);
return 1;
}
But here's the problem :
When the vehicle explodes, and I die of course, then spawn again
I spawn with that vehicle but that vehicle spawns another one.
How can I make it not spawn another one when the vehicle explodes?