Server Tutorial System
#1

pawn Код:
if(PlayerInfo[playerid][pTutDone] == 0)
            {
                SetPlayerCameraPos(playerid, 1796.2111, -1743.2144, 24.9680);
                SetPlayerCameraLookAt(playerid, 1796.9711, -1742.5735, 24.9130);
                SafeSetPlayerInterior(playerid, 0);
                SetPlayerVirtualWorld(playerid, 0);
                TogglePlayerControllable(playerid, 0);
               
                // Clears the chat-box for the user
                ClearChatbox(playerid, 100);
               
                // Sends the client messages
                SendClientMessage(playerid, COLOR_LIGHTBLUE,"::..Los Santos Police Department..::");
                SendClientMessage(playerid, COLOR_WHITE,"This is a fuck off test!");
            }
Why does the graphics not load rite, when I do that?
Reply
#2

where is return ?
Reply
#3

Does it a need a return 1; ? to load things rite?
Reply
#4

show whole tut..
Reply
#5

pawn Код:
if(PlayerInfo[playerid][pTutDone] == 0)
            {
                SetPlayerCameraPos(playerid, 1796.2111, -1743.2144, 24.9680);
                SetPlayerCameraLookAt(playerid, 1796.9711, -1742.5735, 24.9130);
                SafeSetPlayerInterior(playerid, 0);
                SetPlayerVirtualWorld(playerid, 0);
                TogglePlayerControllable(playerid, 0);
               
                // Clears the chat-box for the user
                ClearChatbox(playerid, 100);
               
                // Sends the client messages
                SendClientMessage(playerid, COLOR_LIGHTBLUE,"::..Los Santos Police Department..::");
                SendClientMessage(playerid, COLOR_WHITE,"This is a fuck off test!");
               
                return 1;
            }
This is the first part of it, I havent got to second yet, because trying to work out why graphics isn't loaidng rite?
Reply
#6

"if(PlayerInfo[playerid][pTutDone] == 0)" i'm not sure about it but you have if tutdone .. i mean if tut is done you are putting
Quote:

SetPlayerCameraPos(playerid, 1796.2111, -1743.2144, 24.9680);
SetPlayerCameraLookAt(playerid, 1796.9711, -1742.5735, 24.9130);

?
Reply
#7

The reason of the bad graphic is because player is far from the camera
pawn Код:
SetPlayerCameraPos(playerid, 1796.2111, -1743.2144, 24.9680);
try to add the player close to the point (1796.2111, -1743.2144, 24.9680)
for example
pawn Код:
SetPlayerPos(playerid,1796.2111, -1743.2144, 10.9680); //i teleport player under the ground, so he will be close the the camera point.
and dont forget to freeze the player, so he wont fall under the ground.
pawn Код:
TogglePlayerControllable(playerid,0); // 0 = freeze. 1 = unfreeze
Reply
#8

I need help doing this, haha, The graphical stuff is not loading rite, Anyone know why?
Reply
#9

Quote:
Originally Posted by UnknownGamer
Посмотреть сообщение
I need help doing this, haha, The graphical stuff is not loading rite, Anyone know why?
As DryDesert said, you need to move the character closer. It's too far away, none of the textures or objects are rendering.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)