/skiptut - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /skiptut (
/showthread.php?tid=566480)
/skiptut -
Trevor Gin - 06.03.2015
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;
}
Re: /skiptut -
bigboy81 - 06.03.2015
what is the problem here,spam in chat ?
Re: /skiptut -
HY - 06.03.2015
pawn Код:
CMD:skiptut(playerid, params[])
{
if (PlayerInfo[playerid][pAdmin] >= 2)
{
new giveplayerid;
if(sscanf(params, "u", 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;
}
Re: /skiptut -
Trevor Gin - 06.03.2015
Quote:
Originally Posted by HY
pawn Код:
CMD:skiptut(playerid, params[]) { if (PlayerInfo[playerid][pAdmin] >= 2) { new giveplayerid; if(sscanf(params, "u", 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; }
|
Nah, still same
http://gyazo.com/5b020e05e6041cb8ed40b552db6bb549
Re: /skiptut -
Trevor Gin - 06.03.2015
Quote:
Originally Posted by bigboy81
what is the problem here,spam in chat ?
|
nope, the tut rules still.
Re: /skiptut -
Trevor Gin - 15.03.2015
none can help me?
Re: /skiptut -
CalvinC - 17.03.2015
Use
TextDrawHideForPlayer to hide text draws.