SA-MP Forums Archive
After 2 weeks, server back online, when i spawn i die ! - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: After 2 weeks, server back online, when i spawn i die ! (/showthread.php?tid=263969)

Pages: 1 2


Re: After 2 weeks, server back online, when i spawn i die ! - Sil3nc3 - 25.06.2011

Try sticking this line in there.
Code:
SetPlayerHealth(playerid,100);



Re: After 2 weeks, server back online, when i spawn i die ! - Michael@Belgium - 25.06.2011

Quote:
Originally Posted by Sil3nc3
View Post
Try sticking this line in there.
Code:
SetPlayerHealth(playerid,100);
Where ? xp
Under OnplayerSpawn() so replace the SetPlayerHealth(playerid,99999) with 100 ? Or you mean somewhere else


Re: After 2 weeks, server back online, when i spawn i die ! - Sil3nc3 - 26.06.2011

Replace the current SetPlayerHealth with the one I gave you.


Re: After 2 weeks, server back online, when i spawn i die ! - CosmicHosting - 26.06.2011

Hey it's popcorn , try checking the OnPlayerSpawn variable wherever you can mabey something is there?


Re: After 2 weeks, server back online, when i spawn i die ! - Michael@Belgium - 26.06.2011

Quote:
Originally Posted by Sil3nc3
View Post
Replace the current SetPlayerHealth with the one I gave you.
Hmm ... now when i spawn ... lOl I think it's under my OnPlayerConnect because when i spawn i died already, and when i spawn again i see my health losing -10 or -5 then i died (again) and then it goes ! spawn - death - spawn -death ..

Quote:
Originally Posted by CosmicHosting
View Post
Hey it's popcorn , try checking the OnPlayerSpawn variable wherever you can mabey something is there?
Ow hi popcorn In what variable you mean ?


Re: After 2 weeks, server back online, when i spawn i die ! - Michael@Belgium - 26.06.2011

IT'S A SAMP BUG !?

nobody can't fix it lol ..


Re: After 2 weeks, server back online, when i spawn i die ! - iPLEOMAX - 26.06.2011

- Did you try a different spawn location? (Change your coordinates and try.)
- Instead of SetPlayerHealth(playerid, 99999); Use this: SetPlayerHealth(playerid, 0x107FFF);

Or you can do it this way: On top of your script:

#define iFloat 0x107FFF
then,
SetPlayerHealth(playerid, iFloat);

Thats all i can suggest ATM.


Re: After 2 weeks, server back online, when i spawn i die ! - Michael@Belgium - 26.06.2011

Quote:
Originally Posted by iPLEOMAX
View Post
- Did you try a different spawn location? (Change your coordinates and try.)
- Instead of SetPlayerHealth(playerid, 99999); Use this: SetPlayerHealth(playerid, 0x107FFF);

Or you can do it this way: On top of your script:

#define iFloat 0x107FFF
then,
SetPlayerHealth(playerid, iFloat);

Thats all i can suggest ATM.
It's a strange example you give me xs 0x107FFF is like a color but ok i edited it and still don't work ...


Re: After 2 weeks, server back online, when i spawn i die ! - alpha500delta - 26.06.2011

Maybe the AntiSpawnKill public sets the health to 0...


Re: After 2 weeks, server back online, when i spawn i die ! - Michael@Belgium - 26.06.2011

Quote:
Originally Posted by alpha500delta
View Post
Maybe the AntiSpawnKill public sets the health to 0...
pawn Code:
Euhm :S

forward AntiSpawnkill(playerid);
public AntiSpawnkill(playerid)
{
    SetPlayerHealth(playerid, 100);
    Delete3DTextLabel(label[playerid]);
    SendClientMessage(playerid, 0xFF0000AA, "Anti-Spawnkill protection over, you are on your own now");
    return 1;
}