Spawn help
#1

Anyone can told me how to respawn player in dm so if player dead on dm* he will re spawn on only in dm not on Other teles.

Thanks.
Reply
#2

Try:
pawn Код:
new IsInDeathMatch[MAX_PLAYERS];
pawn Код:
IsInDeathMatch[playerid] = 1;//in dm
IsInDeathMatch[playerid] = 0;//not in dm
pawn Код:
if(IsInDeathMatch[playerid] == 1)
{
    //blah
    //blah
}
Reply
#3

I know that , i have :
if(DMZone[playerid] == 1)
DMZone[playerid] = 0;

But i want to re spawn player on dm i think this need

OnPlayerSpawn
Reply
#4

Something like:

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(IsInDeathMatch[playerid] == 1)
    {
        //spawn back to dm
    }
    return 1;
}
Reply
#5

This isnt work r
Reply
#6

Quote:
Originally Posted by [M.A]Angel[M.A]
Посмотреть сообщение
This isnt work r
Well, can we see the code ?
Reply
#7

public OnPlayerDeath(playerid, killerid, reason)
{
if(IsInDeathMatch[playerid] == 1)
{
SetPlayerPos(playerid,xxxxxxxxxxx);
} return 1;}
Reply
#8

Quote:
Originally Posted by [M.A]Angel[M.A]
Посмотреть сообщение
public OnPlayerDeath(playerid, killerid, reason)
{
if(IsInDeathMatch[playerid] == 1)
{
SetPlayerPos(playerid,xxxxxxxxxxx);
} return 1;}
And where are you setting these ?

pawn Код:
IsInDeathMatch[playerid] = 1;//in dm
IsInDeathMatch[playerid] = 0;//not in dm
Reply
#9

I do it , i would asking :

OnPlayerSpawn

{

//Back to dm => what i will do here?

}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)