Posts: 29
Threads: 5
Joined: Oct 2009
Reputation:
0
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 =)
Posts: 3,262
Threads: 30
Joined: Aug 2008
Reputation:
0
He wouldn't say thank you if it didn't...
Posts: 29
Threads: 5
Joined: Oct 2009
Reputation:
0
I am still equal change a few things but it(he,she) is still equal, is closed whenever it(he,she) wants, aleatoriamente
Posts: 29
Threads: 5
Joined: Oct 2009
Reputation:
0
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;
}