11.06.2015, 07:37
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:
and on player spawn
please help me. Thank you
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); }
Код:
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; }