Hi, i need help. (OnPlayerRequestClass) - 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: Hi, i need help. (OnPlayerRequestClass) (
/showthread.php?tid=676879)
Hi, i need help. (OnPlayerRequestClass) -
AngeloMk - 22.06.2020
Hi, I need a little help with this. I want that when the user connects he has to choose a character. when I enter the server the character is not seen. you see the sky.
Re: Hi, i need help. (OnPlayerRequestClass) -
jasperschellekens - 22.06.2020
Set the Spawn info before spawning the player
Re: Hi, i need help. (OnPlayerRequestClass) -
Hazard - 22.06.2020
send public on request class
Re: Hi, i need help. (OnPlayerRequestClass) -
AngeloMk - 22.06.2020
pawn Code:
public OnGameModeInit()
{
AddPlayerClass(292, 1958.33, 1343.12, 15.36, 269.15, -1, -1, -1, -1, -1, -1);
AddPlayerClass(50, 1958.33, 1343.12, 15.36, 269.15, -1, -1, -1, -1, -1, -1);
AddPlayerClass(280, 1958.33, 1343.12, 15.36, 269.15, -1, -1, -1, -1, -1, -1);
return 1;
pawn Code:
public OnPlayerRequestClass(playerid)
{
SetPlayerCameraPos(playerid, 1597.3928, -1699.5081, 55.9331);
SetPlayerCameraLookAt(playerid, 1596.5624, -1700.0829, 55.7230);
SetPlayerPos(playerid, -316.776245, 1053.410400, 15.265959);
return 1;
}
Re: Hi, i need help. (OnPlayerRequestClass) -
Hazard - 22.06.2020
try to put on OnPlayerRequestSpawn