/skiptut
#1

Why when i do /skiptut on the players to skipt the tut the comment of tut still?

Screenshot: http://i.imgur.com/EyKd5Lq.png

this skiptut cmd:

Код:
CMD:skiptut(playerid, params[])
{
	if (PlayerInfo[playerid][pAdmin] >= 2)
	{
		new giveplayerid;
	    if(sscanf(params, "ui", giveplayerid)) return SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /skiptut [player]");

        if(IsPlayerConnected(giveplayerid))
		{
            if(TutStep[giveplayerid] > 0)
			{
       			ClearChatbox(giveplayerid); HideTutGUIBox(giveplayerid); HideTutGUIFrame(giveplayerid, 24);
            	PlayerInfo[giveplayerid][pTut] = 24;
	            gOoc[giveplayerid] = 0;
			    gNews[giveplayerid] = 0;
			    gFam[giveplayerid] = 0;
			    TutStep[giveplayerid] = 24;
			    SetPlayerVirtualWorld(giveplayerid, 0);
			    SendClientMessageEx(giveplayerid, COLOR_WHITE, "You have been forced out of the tut by an admin.");
			    TogglePlayerControllable(giveplayerid, 1);
		     }
		     else SendClientMessageEx(playerid, COLOR_GRAD2, "That player is not in the tutorial!");
		}
	}
	else SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
	return 1;
}
Reply


Messages In This Thread
/skiptut - by Trevor Gin - 06.03.2015, 13:26
Re: /skiptut - by bigboy81 - 06.03.2015, 13:38
Re: /skiptut - by HY - 06.03.2015, 14:58
Re: /skiptut - by Trevor Gin - 06.03.2015, 15:23
Re: /skiptut - by Trevor Gin - 06.03.2015, 17:46
Re: /skiptut - by Trevor Gin - 15.03.2015, 21:23
Re: /skiptut - by CalvinC - 17.03.2015, 17:26

Forum Jump:


Users browsing this thread: 1 Guest(s)