Problem with respawn
#1

Hello, I Have a problem with the respawn of the saints, to the respawn when you initiate the game it(he,she) is OK but when you die the game is closed, since(as,like) podria to arrange it?


note: sorry for my bad english =)
Reply
#2

Quote:
Originally Posted by linoxtrala
but when you die the game is closed
If i understood you correctly, your server is crashing when someone dies? If yes, post your OnPlayerDeath-callback code.
Reply
#3

Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by linoxtrala
but when you die the game is closed
If i understood you correctly, your server is crashing when someone dies? If yes, post your OnPlayerDeath-callback code.
Thank you, jajaj i am a stupid indeed one forget to change the onplayerdeath and because of it the game is closed. Thank you
Reply
#4

So, it's working now?
Reply
#5

He wouldn't say thank you if it didn't...
Reply
#6

Quote:
Originally Posted by Don Correlli
So, it's working now?
yes but my server work with hamachi for my friends =)
Reply
#7

Quote:
Originally Posted by MenaceX^
He wouldn't say thank you if it didn't...
I didn't understood him correctly, that's why i asked..
Reply
#8

I am still equal change a few things but it(he,she) is still equal, is closed whenever it(he,she) wants, aleatoriamente
Reply
#9

here post the code OnPlayer Death

public OnPlayerDeath(playerid, killerid, reason)
{
new playercash;
if(killerid == INVALID_PLAYER_ID) {
SendDeathMessage(INVALID_PLAYER_ID,playerid,reason );
ResetPlayerMoney(playerid);
} else {
SendDeathMessage(killerid,playerid,reason);
SetPlayerScore(killerid,GetPlayerScore(killerid)+1 );
playercash = GetPlayerMoney(playerid);
if (playercash > 0) {
GivePlayerMoney(killerid, playercash);
ResetPlayerMoney(playerid);
}
else
{
}
}
return 1;
}
Reply
#10

Please help my
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)