After death
#1

If the player dies in the Paintball I made, he respawns at the spawning point where he spawned in the login.
So, how do I make it like, when he dies in the Paintball area, he keep respawning in the Paintball area until he leaves the paintball area.
code:

PHP код:
if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playeridCOLOR_RED"Error: You need $1000 to enter the Paintball area.");
                
GivePlayerMoney(playerid, -1000);
                
SetPlayerPos(playerid, -975.975708,1060.983032,1345.671875);
                
SendClientMessage(playeridCOLOR_YELLOW"You have entered the Paintball area, have fun!");
                
SetPlayerVirtualWorld(playeridVW_PAINTBALL);
                
SetPlayerInterior(playerid10); 
If more codes are needed, feel free to ask.

Edit: I atleast tried it, but its bugged as hell, so keep sticked to my question.
The tried thingy;;
PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    if(
GetPlayerInterior(playerid) == 10)
    
SetSpawnInfo(playerid00, -975.975708,1060.983032,1345.671875270245000025500002850000);
    
SetPlayerPos(playerid, -975.975708,1060.983032,1345.671875);
    
SetPlayerVirtualWorld(playeridVW_PAINTBALL);
    
SetPlayerInterior(playerid10);
    
SendDeathMessage(killeridplayeridreason); 
Reply


Messages In This Thread
After death - by saffierr - 19.09.2015, 01:20
Re: After death - by Alpay0098 - 19.09.2015, 03:20
Re: After death - by BroZeus - 19.09.2015, 05:19
Re : Re: After death - by KillerDVX - 19.09.2015, 15:30
Re: After death - by xVIP3Rx - 19.09.2015, 15:39
Re : Re: After death - by KillerDVX - 19.09.2015, 15:43
Re: Re : Re: After death - by xVIP3Rx - 19.09.2015, 15:50
Re : After death - by KillerDVX - 19.09.2015, 15:51
Re: After death - by xVIP3Rx - 19.09.2015, 15:56
Re: After death - by saffierr - 19.09.2015, 16:42

Forum Jump:


Users browsing this thread: 1 Guest(s)