Objects under OnPlayerRequestClass?
#1

Hi, I got a little question, in servers I see it very often that the spawn is at a custom map, however, when I make a map, and do this under OnPlayerRequestClass:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    GameTextForPlayer(playerid, "~r~Teams will be selected after spawning!", 30000, 4);
    SetPlayerPos(playerid, 31.0470,22.3785,28.9633);
    SetPlayerCameraPos(playerid, 31.0470,22.3785,28.9633);
    SetPlayerCameraLookAt(playerid, 31.0470,22.3785,28.9633);
    return 1;
}
I see no objects when theres a map placed right at this place where the playerpos, camera pos and cameralookat is...
so, how can I make it that u see the map on the spawn request?
BTW: I'm using icognito streamer for maps...
Thanks in advance
+rep for the helper
Reply
#2

i have tried the same but CreateDynamicObject is not shwoing the objects on request class so i changed them to CreateObject only for the request class so i changed the object i need for the request class to CreateObject.try to change the objects you need for request class to CreateObject n i am sure it will work
Reply
#3

True, CreateDynamicObject wont show on OnPlayerRequestClass, but CreateObject will.
Thats how i do it aswell.
Reply
#4

Thanks didnt think about that lol... Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)