Advertisement
Guest User

Untitled

a guest
Oct 7th, 2010
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.98 KB | None | 0 0
  1. public OnPlayerRequestClass(playerid, classid)
  2. {
  3.     SetPlayerPos(playerid, -1296.0145,2541.9973,87.7422);
  4.     SetPlayerCameraPos(playerid, -1290.0840,2541.5496,87.3370);
  5.     SetPlayerCameraLookAt(playerid, -1296.0145,2541.9973,87.7422);
  6.     switch (classid)
  7.     {
  8.         case 115:
  9.             ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Skin", "This skin requires a password !\nType down the correct password to choose it !", "OK", "Cancel");
  10.     }
  11.     return 1;
  12. }
  13.  
  14. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  15. {
  16.     if(response)
  17.     {
  18.         switch (dialogid)
  19.         {
  20.             case 1:
  21.             {
  22.                 if (strval(inputtext) != Planes) return SendClientMessage(playerid,COLOR_GREY,"Invalid Password !");
  23.                 SendClientMessage(playerid, COLOR_WHITE, "Correct Password. Skin taken.");
  24.                 SetPlayerSkin(playerid, YOURSKIN);
  25.                 TogglePlayerControllable(playerid, true);
  26.                 TogglePlayerSpectating(playerid, 0);
  27.                 SetCameraBehindPlayer(playerid);
  28.                 SpawnPlayer(playerid);
  29.             }
  30.         }
  31.     }
  32.     return 1;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement