17.03.2013, 16:26
So, I have this OnDialogResponse when the player types in a password to register with, which is after the character spawns.
and I have this near the top of my gamemode,
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?
pawn Код:
StartTutorial(playerid);
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
}