What is this? - 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: What is this? (
/showthread.php?tid=650566)
What is this? -
MariusAdv - 02.03.2018
I have a little problem.
https://imgur.com/1tjPvJF
https://imgur.com/L83qd8c
Re: What is this? -
Sew_Sumi - 02.03.2018
Yep, show your OnPlayerSpawn, and OnPlayerRequestClass code...
Being that you're spawned in blueberry, it seems like your spawn location, or class selection are messed.
The fact that you can't see your character in the selection window, also hints to something being wrong with your coordinates of the player location, or the selection camera. (Is it looking where you want it to look, or is that not where it was supposed to be?)
I also see you've restarted the server via RCON, is this what's leading to it? Did it work fine from a cold-start?
Re: What is this? -
MariusAdv - 02.03.2018
OnPlayerRequestSpawn is empty and OnPlayerSpawn I have
Код:
if(IsFlyModeOn[playerid] == 1)
{
StopFly(playerid);
IsFlyModeOn[playerid] = 0;
SetPlayerHealth(playerid, 99);
}
new string5[100], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string5, sizeof(string5), "%s / ~r~EAGLES~w~.~w~SAPHIRE~w~.~r~RO", name);
PlayerTextDrawSetString(playerid, NameTD, string5);
PlayerTextDrawShow(playerid, NameTD);
Re: What is this? -
MariusAdv - 02.03.2018
I have a gamemode from zero and I have problem with this from the beginning.
Re: What is this? -
Sew_Sumi - 02.03.2018
Then it'll be your add class section.
What's happening in this spawn, is that you're not setting any place for them to spawn, which should also be under AddPlayerClass.
Your camera issue is related to OnPlayerRequestClass being empty.