Need help with tutorial.
#4

pawn Код:
if(strcmp(cmd, "/Tutorial", true) == 0)
{
    TogglePlayerControllable(playerid, 0);
    Tutorial[playerid] = 1;
    SetTimerEx("Tutorial", 1000, 1);
}
   
if(Tutorial[playerid] == 1)
{
    SendClientMessage(playerid,COLOR_YELLOW2,"Tutorial text");
    SendClientMessage(playerid,COLOR_YELLOW2,"Tutorial text");
    SetPlayerPos(playerid, 974.0024,-1537.4017,73.0980);
    SetPlayerCameraPos(playerid, 974.0024,-1537.4017,73.0980);
    SetPlayerCameraLookAt(playerid, 1320.8724,-1409.4318,104.8676);    
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid,0);
    Tutorial[playerid] = 2;
}
else if(Tutorial[playerid] == 2)
{
    SendClientMessage(playerid,COLOR_YELLOW2,"Tutorial text ");
    SendClientMessage(playerid,COLOR_YELLOW2,"Tutorial text");
    return 1;
}
NOTE: You must have
pawn Код:
public Tutorial(playerid)
to change tutorial[playerid] to 0 if player wants to watch the tutorial again,back him virtual world & interior.
Reply


Messages In This Thread
Need help with tutorial. - by Snyper - 23.05.2009, 21:48
Re: Need help with tutorial. - by .::: Ecko :::. - 23.05.2009, 21:54
Re: Need help with tutorial. - by Snyper - 23.05.2009, 21:57
Re: Need help with tutorial. - by Luka P. - 23.05.2009, 22:23
Re: Need help with tutorial. - by Snyper - 23.05.2009, 22:47
Re: Need help with tutorial. - by Donny_k - 24.05.2009, 00:58
Re: Need help with tutorial. - by Snyper - 24.05.2009, 01:18
Re: Need help with tutorial. - by Donny_k - 24.05.2009, 01:20

Forum Jump:


Users browsing this thread: 1 Guest(s)