Problem with respawn
#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


Messages In This Thread
Problem with respawn - by linoxtrala - 12.10.2009, 12:32
Re: Problem with respawn - by Correlli - 12.10.2009, 13:02
Re: Problem with respawn - by linoxtrala - 12.10.2009, 19:21
Re: Problem with respawn - by Correlli - 12.10.2009, 19:22
Re: Problem with respawn - by MenaceX^ - 12.10.2009, 19:23
Re: Problem with respawn - by linoxtrala - 12.10.2009, 19:24
Re: Problem with respawn - by Correlli - 12.10.2009, 19:25
Re: Problem with respawn - by linoxtrala - 12.10.2009, 19:27
Re: Problem with respawn - by linoxtrala - 12.10.2009, 19:28
Re: Problem with respawn - by linoxtrala - 15.10.2009, 11:44

Forum Jump:


Users browsing this thread: 2 Guest(s)