Hi, i need help. (OnPlayerRequestClass)
#1

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.
Reply
#2

Set the Spawn info before spawning the player
Reply
#3

send public on request class
Reply
#4

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;
}
Reply
#5

try to put on OnPlayerRequestSpawn
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)