07.09.2013, 16:56
pawn Code:
CMD:skipmytut(playerid, params[])
{
for(new t = 0; t < 54; t++)
{
TextDrawHideForPlayer(playerid, TutTxtDraw[t]);
}
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
TogglePlayerControllable(playerid, 1);
SetPlayerPos(playerid, 1773.459350, -1942.273437, 13.569922);
SetPlayerFacingAngle(playerid, 329.64);
SetCameraBehindPlayer(playerid);
InsideTut[playerid] = 0;
DeletePVar(playerid, "MedicBill");
SetPlayerColor(playerid,TEAM_HIT_COLOR);
PlayerInfo[playerid][pTut] = 1;
PlayerInfo[playerid][pSkin] = 299;
SetPlayerSkin(playerid, 299);
ClearChatbox(playerid);
new string[128];
format(string, sizeof(string), "Welcome to Horizon Roleplay, %s.", GetPlayerNameEx(playerid));
SendClientMessage(playerid, COLOR_NEWS, string);
format(string, sizeof(string), "~w~Welcome~n~~y~%s", GetPlayerNameEx(playerid));
GameTextForPlayer(playerid, string, 5000, 1);
SendClientMessage(playerid, COLOR_YELLOW, "If you have any further questions, please use /newb. You can also /report if you see any rule-breakers.");
new motdstring[128];
format(motdstring, sizeof(motdstring), "News: %s", GlobalMOTD);
SendClientMessage(playerid, COLOR_WHITE, motdstring);
DeletePVar(playerid, "IsFrozen");
TutorialProgress[playerid] = 0;
return 1;
}