Help please!
#1

Anyone know the script that if Player %s is dead in death match area re spawned in ?
example

%example is dead when is spawn again get in the death match area just if write /leavedm ! please help if you know ,Do not skimp.
Reply
#2

Wtf??
Reply
#3

I think he means, if the player is in a dmzone and he dies for example. He'll respawn in the dmzone again.
Reply
#4

just wondering the forum server didnt crash
Pls explain some more cause i think no one is able to understand this!
Reply
#5

REmoved.
Reply
#6

u have to set up a variable e.g.

new entereddm[MAX_PLAYERS];

As soon as a player enters a dm area
entereddm[playerid]++;

As soon as he leaves entereddm[playerid]--;

And do an if function for example to check if the players has an entereddm value of 1
If yes do it like this player is spawned in the dm area again else spawn or SetPlayerPos anywhere else.

I dont have time noe to explain better
Reply
#7

Why ++ and --?

You can better set it to IsInDM[playerid] = 1; then SetPlayerPos in DM area and if its 0 you can spawn them somewhere else
Reply
#8

Quote:
Originally Posted by BlackWolf120
Посмотреть сообщение
u have to set up a variable e.g.

new entereddm[MAX_PLAYERS];

As soon as a player enters a dm area
entereddm[playerid]++;

As soon as he leaves entereddm[playerid]--;

And do an if function for example to check if the players has an entereddm value of 1
If yes do it like this player is spawned in the dm area again else spawn or SetPlayerPos anywhere else.

I dont have time noe to explain better
hey yes , i mean that , so when i was in dm and dead i respawned in the dm please more info?

Sorry for bad eng
Reply
#9

Create a varible like IsInDM..

new IsInDM[MAX_PLAYERS];

Now call that varible at the place that takes the player to the dm
e.g

IsInDM[playerid] = 1;

Then make a if statement on onplayerspawn like

if(IsInDm[playerid] == 1)
{
// add setplayerpos or place u wanna put the player..
}
Reply


Forum Jump:


Users browsing this thread: 7 Guest(s)