04.02.2018, 11:26
Hi. If I press F4 and die in the vehicle (I use SetPlayerHealth (playerid, 0.0)
there is a call of OnPlayerRequestClass occurs, even without the animation of death. I show it on new.pwn.
Video: https://www.youtube.com/watch?v=2PkV...ature=*********
there is a call of OnPlayerRequestClass occurs, even without the animation of death. I show it on new.pwn.Код:
#include <a_samp>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddStaticVehicle(411, 2977.9031,1295.5956,18.2517,259.4196, 1, 1);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 2977.9031,1295.5956,18.2517);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/tp", cmdtext, true, 3) == 0)
{
SetPlayerPos(playerid, 2977.9031,1295.5956,18.2517);
return 1;
}
if (strcmp("/kill", cmdtext, true, 5) == 0)
{
SetPlayerHealth(playerid, 0.0);
return 1;
}
return 0;
}


