Death Bug? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Death Bug? (
/showthread.php?tid=335316)
Death Bug? -
Nuke547 - 17.04.2012
Everytime somebody dies on my server, it says stay within the world boundaries and the server got anal'd.
This is what I have on Request Class, Spawn, and Death
Spawn:
pawn Код:
if(pStats[playerid][Logged] == 1 && pStats[playerid][JustDied] == 1)
{
SetSpawnInfo(playerid, 0, pStats[playerid][Skin], 1172.231, -1323.294, 15.402, 0, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
pStats[playerid][JustDied] = 0;
}
Death:
pawn Код:
pStats[playerid][JustDied] = 1;
if(pStats[playerid][InEvent] == 0)
{
pStats[playerid][Money] -= 1000;
}
if(pStats[playerid][InEvent] == 1)
{
eStats[Players]--;
pStats[playerid][InEvent] = 0;
}
Request Class:
pawn Код:
if(pStats[playerid][Logged] == 1 && pStats[playerid][JustDied] == 1)
{
SetSpawnInfo(playerid, 0, pStats[playerid][Skin], 1172.231, -1323.294, 15.402, 0, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
pStats[playerid][JustDied] = 0;
}