Spawn After Death
#6

Quote:
Originally Posted by aymane123
Посмотреть сообщение
if so payers will go back to city selection then class selection remove the OnplayerDeath function and remplace it with this one.
PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    new 
playercash;
     
    if(
killerid == INVALID_PLAYER_ID) {
        
ResetPlayerMoney(playerid);
    } else {
        
playercash GetPlayerMoney(playerid);
        if(
playercash 0)  {
            
GivePlayerMoney(killeridplayercash);
            
ResetPlayerMoney(playerid);
        }
    }
       return 
1;

i'm sorry, it's working with original grandlarc not on my edited grandlarc

hmm... for some reason, after dying it returns to city selection, how do i skip that after dying? is it possible to skip city selection after dying?
by the way, i use a code to save player's position, will this conflict with "OnPlayerDeath"?
well i think it's not, because it saves after player disconnects and loads before spawning correct me if i'm wrong
Reply


Messages In This Thread
Spawn After Death - by RedFall - 22.01.2017, 16:28
Re: Spawn After Death - by aymane123 - 22.01.2017, 16:42
Re: Spawn After Death - by Stones - 22.01.2017, 16:54
Re: Spawn After Death - by oMa37 - 22.01.2017, 17:43
Re: Spawn After Death - by AmigaBlizzard - 22.01.2017, 21:50
Re: Spawn After Death - by RedFall - 23.01.2017, 11:42

Forum Jump:


Users browsing this thread: 2 Guest(s)