RP Tutorial problem
#1

So, I have this OnDialogResponse when the player types in a password to register with, which is after the character spawns.
pawn Код:
StartTutorial(playerid);
and I have this near the top of my gamemode,
pawn Код:
stock StartTutorial(playerid)
{
    TogglePlayerSpectating(playerid, 1);
    TogglePlayerControllable(playerid, 0);
    SetPlayerCameraLookAt(playerid, 2059.460937, 1301.621337, 10.806432);
    SetPlayerCameraPos(playerid, 2059.460937, 1301.621337, 10.806432);
    SendClientMessage(playerid, COLOR_YELLOW, "{FF0000}______________TUTORIAL______________"); //---1
    SendClientMessage(playerid, COLOR_YELLOW, "Major Rules:"); //---2
    SendClientMessage(playerid, COLOR_YELLOW, "{FF0000}1){FFFF00} No DM(deathmatch)"); //---3
    SendClientMessage(playerid, COLOR_YELLOW, "{FF0000}2){FFFF00} Don't abuse /ooc or /newb chat"); //---4
    SendClientMessage(playerid, COLOR_YELLOW, "{FF0000}3){FFFF00} Don't ask for admin rights"); //---5
    SendClientMessage(playerid, COLOR_YELLOW, "{FF0000}4){FFFF00} Don't as to join factions, we will let you know if they are hiring"); //---6
    SendClientMessage(playerid, COLOR_YELLOW, "{FF0000}5){FFFF00} Only use normal chat for RP, don't MG(metagame)"); //---7
    SendClientMessage(playerid, COLOR_YELLOW, "{FF0000}6){FFFF00} To talk out of character, use /ooc chat."); //---8
    SendClientMessage(playerid, COLOR_YELLOW, "{FF0000}5){FFFF00} Driver's licenses are required to drive a vehicle"); //---9
    SendClientMessage(playerid, COLOR_YELLOW, "{FF0000}____________________________________"); //---10
    SetTimerEx("tutorial2",15000,false,"i",playerid);
}
stock tutorial2(playerid)
{
    TogglePlayerSpectating(playerid, 0);
    TogglePlayerControllable(playerid, 1);
    SetCameraBehindPlayer(playerid);
    SendClientMessage(playerid, COLOR_LIMEGREEN, "Welcome to Nate's RP! You are free to roam about!");//1
    SendClientMessage(playerid, COLOR_LIMEGREEN, " ");//2
    SendClientMessage(playerid, COLOR_LIMEGREEN, " ");//3
    SendClientMessage(playerid, COLOR_LIMEGREEN, " ");//4
    SendClientMessage(playerid, COLOR_LIMEGREEN, " ");//5
    SendClientMessage(playerid, COLOR_LIMEGREEN, " ");//6
    SendClientMessage(playerid, COLOR_LIMEGREEN, " ");//7
    SendClientMessage(playerid, COLOR_LIMEGREEN, " ");//8
    SendClientMessage(playerid, COLOR_LIMEGREEN, " ");//9
    SendClientMessage(playerid, COLOR_LIMEGREEN, " ");//10
}
When a new user registers, they are in spectate mode, but the camerea doesn't move. The messages show up fine, but after 15 seconds, when the second stage oif the tutorial is supposed to run, it doesn't. Anyone see why?
Reply
#2

bumpp
Reply
#3

bumpp again :/ sorry. Just kinda urgent.
Reply
#4

try turning the stocks to public and use a timer to start the first 1 (Y)
Reply
#5

It works, but before the player goes into spectate mode, they are spawned at the spawn, and after the spectate mode ends, they are placed at 0, 0, 0.
Reply
#6

Use SetSpawnInfo() and SpawnPlayer() at the end of the tutorial to put them in the correct spot!
Reply
#7

Quote:
Originally Posted by Nathan_Taylor
Посмотреть сообщение
It works, but before the player goes into spectate mode, they are spawned at the spawn, and after the spectate mode ends, they are placed at 0, 0, 0.
SpawnPlayer(playerid); after the toggleplayerspectate(playerid,0); i guess.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)