07.10.2015, 18:46
PHP код:
forward PularTuto(playerid);
public PularTuto(playerid)
{
if(Tuto[playerid] == 1)
{
PodePular[playerid] = 1;
}
else
{
Tuto[playerid] = 0;
ProxTuto[playerid] = 0;
TogglePlayerSpectating(playerid, 0);
for(new i=0;i<11;++i) PlayerTextDrawHide(playerid, TutorialTD[i]);
}
return 1;
}
PHP код:
if(oldkeys & KEY_SECONDARY_ATTACK)
{
if(Tuto[playerid] == 1)
{
if(PodePular[playerid] == 1)
{
for(new i=1;i<11;++i) PlayerTextDrawHide(playerid, TutorialTD[i]);
if(ProxTuto[playerid] < 15)
{
ProxTutor(playerid);
}
else
{
PlayerTextDrawHide(playerid, TutorialTD[0]);
Tuto[playerid] = 0;
ProxTuto[playerid] = 0;
PodePular[playerid] = 0;
TogglePlayerSpectating(playerid, 0);
}
return 1;
}
}
return 1;
}
http://pastebin.com/kiqbQaDt