Tutorial only appears for ID 0
#7

PHP код:
forward PularTuto(playerid);
public 
PularTuto(playerid)
{
    if(
Tuto[playerid] == 1)
    {
        
PodePular[playerid] = 1;
    }
    else
    {
        
Tuto[playerid] = 0;
        
ProxTuto[playerid] = 0;
        
TogglePlayerSpectating(playerid0);
        for(new 
i=0;i<11;++iPlayerTextDrawHide(playeridTutorialTD[i]);
    }
    return 
1;

PHP код:
if(oldkeys KEY_SECONDARY_ATTACK)
{
    if(
Tuto[playerid] == 1)
    {
        if(
PodePular[playerid] == 1)
        {
            for(new 
i=1;i<11;++iPlayerTextDrawHide(playeridTutorialTD[i]);
            if(
ProxTuto[playerid] < 15)
            {
                
ProxTutor(playerid);
            }
            else
            {
                
PlayerTextDrawHide(playeridTutorialTD[0]);
                
Tuto[playerid] = 0;
                
ProxTuto[playerid] = 0;
                
PodePular[playerid] = 0;
                
TogglePlayerSpectating(playerid0);
            }
            return 
1;
        }
    }
    return 
1;

ProxTutor(playerid)
http://pastebin.com/kiqbQaDt
Reply


Messages In This Thread
Tutorial only appears for ID 0 - by garotin - 07.10.2015, 06:27
Re: Tutorial only appears for ID 0 - by jlalt - 07.10.2015, 06:52
Re: Tutorial only appears for ID 0 - by garotin - 07.10.2015, 12:29
Re: Tutorial only appears for ID 0 - by Ahmad45123 - 07.10.2015, 12:39
Re: Tutorial only appears for ID 0 - by garotin - 07.10.2015, 12:41
Re: Tutorial only appears for ID 0 - by Ahmad45123 - 07.10.2015, 17:50
Re: Tutorial only appears for ID 0 - by garotin - 07.10.2015, 18:46
Re: Tutorial only appears for ID 0 - by Ahmad45123 - 07.10.2015, 19:40
Re: Tutorial only appears for ID 0 - by garotin - 07.10.2015, 19:57
Re: Tutorial only appears for ID 0 - by garotin - 07.10.2015, 22:56

Forum Jump:


Users browsing this thread: 2 Guest(s)