After 2 weeks, server back online, when i spawn i die !
#21

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

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
Reply
#23

Replace the current SetPlayerHealth with the one I gave you.
Reply
#24

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

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 ?
Reply
#26

IT'S A SAMP BUG !?

nobody can't fix it lol ..
Reply
#27

- 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.
Reply
#28

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 ...
Reply
#29

Maybe the AntiSpawnKill public sets the health to 0...
Reply
#30

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;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)