05.02.2018, 17:47
That's bad, as if you use my script that I handed you, and simply change this
it works fine... It only bugs out when I use /spawn, and that's likely because of what you've ripped out of the OnPlayerRequestSpawn.
Change it to this
and viola, your bug replicates.
Don't rip out things without considering that they'll cause issues later.
PHP Code:
public OnPlayerRequestClass(playerid, classid)
{
SendClientMessage(playerid, -1, "OnPlayerRequestClass Called");
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
SetSpawnInfo(playerid, 0, 0, 1958.3783, 1343.1572, 15.3746, 280, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
return 1;
}
Change it to this
PHP Code:
public OnPlayerRequestClass(playerid, classid)
{
SendClientMessage(playerid, -1, "OnPlayerRequestClass Called");
//SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
//SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
//SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
SetSpawnInfo(playerid, 0, 0, 1958.3783, 1343.1572, 15.3746, 280, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
return 1;
}
Don't rip out things without considering that they'll cause issues later.