Help please! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help please! (
/showthread.php?tid=213208)
Help please! -
Awesome@Man - 18.01.2011
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.
Re: Help please! -
alpha500delta - 18.01.2011
Wtf??
Re: Help please! -
Jay. - 18.01.2011
I think he means, if the player is in a dmzone and he dies for example. He'll respawn in the dmzone again.
Re: Help please! -
BlackWolf120 - 18.01.2011
just wondering the forum server didnt crash
Pls explain some more cause i think no one is able to understand this!
Re: Help please! -
Jay. - 18.01.2011
REmoved.
Re: Help please! -
BlackWolf120 - 18.01.2011
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
Re: Help please! -
alpha500delta - 18.01.2011
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
Re: Help please! -
Awesome@Man - 19.01.2011
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
Re: Help please! -
Lorenc_ - 19.01.2011
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..
}