How to ..............
#1

hi , when player enter the dm and ge killed , he/she always return back to the spawn set , how should i post any thing in my GM that leads to when he dies in the /dm go to the /dm again but when he use the /exit he goes to the spawn set position
i mean :
goto /dm > killed > spawn in the spawn set ( i hate that )
the right 1 that i want to do it
goto /dm > killed > return back to the /dm untill use the /exit
, i hope you guyz can help me
thanks
Reply
#2

Use a variable to check if a player is in the dm, something like this
pawn Код:
new indm[MAX_PLAYERS];//at the top of script


COMMAND:dm(playerid, params[])
{
    indm[playerid] = 1;//put this wherever you set the players position
    return 1;
}

public OnPlayerSpawn(playerid)//you might be better using a timer in onplayerdeath
{
    if(indm[playerid] == 1)
    {
        SetPlayerPos(playerid, x, y, z);// this might be buggy, if it is use a short timer
    }
    return 1;
}
Reply
#3

i have no timers
Reply
#4

and i dont get you , cuz i don't use params in my GM and please get me another code that return the player to the dm
and fast btw i added you on xfire , so accept me
Reply
#5

I'm not signed in untill tommorow now ill add you then. Try to ignore the params thing just put "indm[playerid] = 1;" inside your command where you teleport the player to the dm. Then (to be safe) in OnPlayerDeath check if the player is in the dm with the variable you made then set a 500ms timer. Inside that timer set the players position back into the deathmatch.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)