[ HELP ] Problem with the Player Death.
#1

Hi,
I have problem with player death. when i type /kill my player get die its ok and then where he died. he spawn there where i typed /kill.
Here and are pictures and codess

when i was type /kill:



And then my player died:


and next he spawned at the same place where he died.


You can also see the timer at down.

Codes:
Код:
	if(strcmp(cmd, "/kill", true) == 0)
	{
		
		return SetPlayerHealth(playerid,0.0);
	}
and on player spawn
Код:
public OnPlayerSpawn(playerid)
{
    TextDrawShowForPlayer(playerid, Textdraw2);
   	TextDrawHideForPlayer(playerid, Textdraw4);
	TextDrawHideForPlayer(playerid, Textdraw5);
	TextDrawHideForPlayer(playerid, Textdraw6);
	TextDrawHideForPlayer(playerid, Textdraw7);
	TextDrawHideForPlayer(playerid, Textdraw8);
	TextDrawShowForPlayer(playerid, Timer);
	SetPlayerRaceCheckpoint(playerid, 0,-2264.8501,2312.7566,4.5473,-2271.4414,2351.0659,4.4289,10);
	Stats[playerid] = 1;
	SetPlayerColor(playerid, COLOR_YELLOW);
	SetPlayerTime(playerid,12,0);
	SetPlayerInterior(playerid,0);
	SetCameraBehindPlayer(playerid);
	SendClientMessage(playerid,0xFF0000FF,"{FF0000}» Usage: {FFFFFF}/re to repair your vehicle!");
	SendClientMessageToAll(-1,"{000DFF}» Serv: {0080FF}This Mission has been created by SpikY_ | On 10/6/2015 | Mission Name: The Marathon Race!");
	SetPlayerPos(playerid,-2263.6921,2284.1008,4.8202);
	SetPlayerHealth(playerid,100);
	SetPlayerArmour(playerid,0);
	PutPlayerInVehicle(playerid, car[playerid], 0);
	if(Free == 0)
	{
	TogglePlayerControllable(playerid, 0);
	}
	else if(Free == 1)
 	{
 	TogglePlayerControllable(playerid, 1);
 	}
	return 1;
}
please help me. Thank you
Reply


Messages In This Thread
[ HELP ] Problem with the Player Death. - by SpikY_ - 11.06.2015, 07:37
Re: [ HELP ] Problem with the Player Death. - by SpikY_ - 11.06.2015, 08:04
Re: [ HELP ] Problem with the Player Death. - by Ghazal - 11.06.2015, 08:26
Re: [ HELP ] Problem with the Player Death. - by SpikY_ - 11.06.2015, 09:03
Re: [ HELP ] Problem with the Player Death. - by SpikY_ - 11.06.2015, 09:07
Re: [ HELP ] Problem with the Player Death. - by Huba - 11.06.2015, 11:05
Re: [ HELP ] Problem with the Player Death. - by SpikY_ - 11.06.2015, 13:01
Re: [ HELP ] Problem with the Player Death. - by Huba - 11.06.2015, 13:05
Re: [ HELP ] Problem with the Player Death. - by SpikY_ - 11.06.2015, 15:18
Re: [ HELP ] Problem with the Player Death. - by Sawalha - 11.06.2015, 16:07

Forum Jump:


Users browsing this thread: 1 Guest(s)