Kyriakos123

Untitled

Feb 28th, 2015
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. CMD:skiptut(playerid, params[])
  2. {
  3. if (PlayerInfo[playerid][pAdmin] >= 2)
  4. {
  5. new giveplayerid;
  6. if(sscanf(params, "ui", giveplayerid)) return SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /skiptut [player]");
  7. new string[128];
  8.  
  9. if(IsPlayerConnected(giveplayerid))
  10. {
  11. if(TutStep[giveplayerid] > 0)
  12. {
  13. ClearChatbox(giveplayerid); HideTutGUIBox(giveplayerid); HideTutGUIFrame(giveplayerid, 23);
  14. PlayerInfo[giveplayerid][pTut] = 24;
  15. gOoc[giveplayerid] = 0;
  16. gNews[giveplayerid] = 0;
  17. gFam[giveplayerid] = 0;
  18. TutStep[giveplayerid] = 24;
  19. SetPlayerVirtualWorld(giveplayerid, 0);
  20. SendClientMessageEx(giveplayerid, COLOR_WHITE, "You have been forced out of the tut by an admin.");
  21. TogglePlayerControllable(giveplayerid, 1);
  22. }
  23. else SendClientMessageEx(playerid, COLOR_GRAD2, "That player is not in the tutorial!");
  24. }
  25. }
  26. else SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  27. return 1;
  28. }
  29.  
  30. #pragma unused string
Advertisement
Add Comment
Please, Sign In to add comment