SA-MP Forums Archive
Stay within the world boundaries after death? WTF? - 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)
+--- Thread: Stay within the world boundaries after death? WTF? (/showthread.php?tid=465696)



Stay within the world boundaries after death? WTF? - BrendaSAMP - 23.09.2013

Hi.

I have a big problem.
When a player death i have a big message:
Stay within the world boundaries




Re: Stay within the world boundaries after death? WTF? - Konstantinos - 23.09.2013

Search to your script for SetPlayerWorldBounds function. You probably set the boundries somewhere.


Re: Stay within the world boundaries after death? WTF? - Sting. - 23.09.2013

Dude, why is the colour of your screen like yellow, I remember last time my computer did that, was a glitch if I remember correctly, not sa-mp but gta sa related. Something like graphic card failed or something. Anyhow, I'm just spit balling.


Re: Stay within the world boundaries after death? WTF? - BrendaSAMP - 23.09.2013

I did not SetPlayerWorldBounds in my script. The problem is only on my server ... : (


Re: Stay within the world boundaries after death? WTF? - DanishHaq - 23.09.2013

Check your filterscripts for SetPlayerWorldBounds, if you have them, remove them.


Re: Stay within the world boundaries after death? WTF? - BrendaSAMP - 23.09.2013

OnPlayerSpawn:

Код:
public OnPlayerSpawn(playerid)
{
	/* On va travailler sur le respawn du joueur aprиs la mort de celui-ci. */
	if(joueurmort[playerid] == 1)
	{
	    SetPlayerPos(playerid, 1649.5544, -2417.1357, 13.5547); /* La position de l'aйroport de LS. */
	    joueurmort[playerid] = 0; /* Ensuite le joueur n'est plus а l'йtat de mort, il respawn. */
	    return 1;
	}
	return 1;
}
OnPlayerDeath:

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
	SendDeathMessage(killerid, playerid, reason); /* Message а droite de l'йcran lorsqu'un joueur est mort. */
	joueurmort[playerid] = 1; /* On met la variable а '1' aprиs la mort. */
	PlayerInfo[killerid][pKills]++;
	PlayerInfo[killerid][pDeaths]++;
	return 1;
}



Re: Stay within the world boundaries after death? WTF? - DanishHaq - 23.09.2013

Quote:
Originally Posted by Battlezone
Посмотреть сообщение
j'ai trouvй ton probleme

mets зa dans on player spawn
Код:
joueurmort[playerid] == 1
English please, if you wanna speak your own language with him, PM him.


Re: Stay within the world boundaries after death? WTF? - BrendaSAMP - 23.09.2013

Quote:
Originally Posted by Battlezone
Посмотреть сообщение
i found your problem

put this in OnPlayerSpawn
Код:
joueurmort[playerid] == 1
And sorry for speaking french
Код:
public OnPlayerSpawn(playerid)
{
	/* On va travailler sur le respawn du joueur aprиs la mort de celui-ci. */
	if(joueurmort[playerid] == 1)
	{
	    SetPlayerPos(playerid, 1649.5544, -2417.1357, 13.5547); /* La position de l'aйroport de LS. */
	    joueurmort[playerid] = 0; /* Ensuite le joueur n'est plus а l'йtat de mort, il respawn. */
	    return 1;
	}
        joueurmort[playerid] == 1;
	return 1;
}
This?


Re: Stay within the world boundaries after death? WTF? - BrendaSAMP - 23.09.2013

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
	SendDeathMessage(killerid, playerid, reason); /* Message а droite de l'йcran lorsqu'un joueur est mort. */
	joueurmort[playerid] = 1; /* On met la variable а '1' aprиs la mort. */
	PlayerInfo[killerid][pKills]++;
	PlayerInfo[killerid][pDeaths]++;
	return 1;
}
I already have.