Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, -1296.0145,2541.9973,87.7422);
- SetPlayerCameraPos(playerid, -1290.0840,2541.5496,87.3370);
- SetPlayerCameraLookAt(playerid, -1296.0145,2541.9973,87.7422);
- switch (classid)
- {
- case 115:
- ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Skin", "This skin requires a password !\nType down the correct password to choose it !", "OK", "Cancel");
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(response)
- {
- switch (dialogid)
- {
- case 1:
- {
- if (strval(inputtext) != Planes) return SendClientMessage(playerid,COLOR_GREY,"Invalid Password !");
- SendClientMessage(playerid, COLOR_WHITE, "Correct Password. Skin taken.");
- SetPlayerSkin(playerid, YOURSKIN);
- TogglePlayerControllable(playerid, true);
- TogglePlayerSpectating(playerid, 0);
- SetCameraBehindPlayer(playerid);
- SpawnPlayer(playerid);
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement