Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- #include <a_actor>
- main()
- {
- print("\n----------------------------------");
- print("[GM] ChoseSkinActor v0.1 - By Rhayziin");
- print("----------------------------------\n");
- }
- new Text:TDChoseActors[MAX_PLAYERS][20];
- public OnGameModeInit()
- {
- SetGameModeText("Blank Script");
- AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- CreateActor(102, 1649.43, -1243.40, 129.36, 95.57); //Traficante
- CreateActor(106, 1649.43, -1244.80, 129.36, 95.57); //Gangster
- CreateActor(87, 1649.43, -1246.20, 129.36, 95.57); //Prostituta
- CreateActor(113, 1649.43, -1247.60, 129.36, 95.57); //Mafioso
- CreateActor(248, 1649.43, -1249.00, 129.36, 95.57); //Motoqueiro
- CreateActor(306, 1649.43, -1250.40, 129.36, 95.57); //Policial
- return 1;
- }
- public OnGameModeExit() return print("[GM] ChoseSkin [DESCARREGADO]");
- public OnPlayerRequestClass(playerid, classid)
- {
- for(new i = 0; i < 100; ++i) SendClientMessage(playerid, -1, " ");
- TogglePlayerSpectating(playerid, true);
- InterpolateCameraPos(playerid, 1555.575195, -1249.134155, 123.893646, 1555.575195, -1249.134155, 123.893646, 1000);
- InterpolateCameraLookAt(playerid, 1560.565063, -1249.017822, 124.190345, 1560.565063, -1249.017822, 124.190345, 1000);
- SetTimerEx("ShowTDs", 5000, false, "ii", playerid, 1);
- SendClientMessage(playerid, 0x00FFFFFF, "{FF8000}[!] {00FFFF}Por favor, aguarde...");
- SendClientMessage(playerid, -1, "{00FF00}Sistema criado por: {8000FF}Rhayziin");
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- SetPVarInt(playerid, "FuncPlayerServidor", -1);
- for(new i = 0; i < 100; ++i) SendClientMessage(playerid, -1, " ");
- TDChoseActors[playerid][0] = TextDrawCreate(65.000000, 155.000000, "LD_BEAT:down");
- TextDrawBackgroundColor(TDChoseActors[playerid][0], 255);
- TextDrawFont(TDChoseActors[playerid][0], 4);
- TextDrawLetterSize(TDChoseActors[playerid][0], 0.500000, 1.000000);
- TextDrawColor(TDChoseActors[playerid][0], 255);
- TextDrawSetOutline(TDChoseActors[playerid][0], 0);
- TextDrawSetProportional(TDChoseActors[playerid][0], 1);
- TextDrawSetShadow(TDChoseActors[playerid][0], 1);
- TextDrawUseBox(TDChoseActors[playerid][0], 1);
- TextDrawBoxColor(TDChoseActors[playerid][0], 255);
- TextDrawTextSize(TDChoseActors[playerid][0], 20.000000, 20.000000);
- TDChoseActors[playerid][1] = TextDrawCreate(79.000000, 140.000000, "_");
- TextDrawAlignment(TDChoseActors[playerid][1], 2);
- TextDrawBackgroundColor(TDChoseActors[playerid][1], 255);
- TextDrawFont(TDChoseActors[playerid][1], 3);
- TextDrawLetterSize(TDChoseActors[playerid][1], 0.539999, 2.000000);
- TextDrawColor(TDChoseActors[playerid][1], -1);
- TextDrawSetOutline(TDChoseActors[playerid][1], 0);
- TextDrawSetProportional(TDChoseActors[playerid][1], 1);
- TextDrawSetShadow(TDChoseActors[playerid][1], 1);
- TextDrawUseBox(TDChoseActors[playerid][1], 1);
- TextDrawBoxColor(TDChoseActors[playerid][1], 255);
- TextDrawTextSize(TDChoseActors[playerid][1], 140.000000, 122.000000);
- TDChoseActors[playerid][2] = TextDrawCreate(79.000000, 141.000000, "TRAFICANTE");
- TextDrawAlignment(TDChoseActors[playerid][2], 2);
- TextDrawBackgroundColor(TDChoseActors[playerid][2], 255);
- TextDrawFont(TDChoseActors[playerid][2], 1);
- TextDrawLetterSize(TDChoseActors[playerid][2], 0.509999, 1.600000);
- TextDrawColor(TDChoseActors[playerid][2], -1);
- TextDrawSetOutline(TDChoseActors[playerid][2], 0);
- TextDrawSetProportional(TDChoseActors[playerid][2], 1);
- TextDrawSetShadow(TDChoseActors[playerid][2], 1);
- TextDrawUseBox(TDChoseActors[playerid][2], 1);
- TextDrawBoxColor(TDChoseActors[playerid][2], 255);
- TextDrawTextSize(TDChoseActors[playerid][2], 15.000000, 119.000000);
- TDChoseActors[playerid][3] = TextDrawCreate(157.000000, 306.000000, "LD_BEAT:up");
- TextDrawBackgroundColor(TDChoseActors[playerid][3], 255);
- TextDrawFont(TDChoseActors[playerid][3], 4);
- TextDrawLetterSize(TDChoseActors[playerid][3], 0.500000, 1.000000);
- TextDrawColor(TDChoseActors[playerid][3], 255);
- TextDrawSetOutline(TDChoseActors[playerid][3], 0);
- TextDrawSetProportional(TDChoseActors[playerid][3], 1);
- TextDrawSetShadow(TDChoseActors[playerid][3], 1);
- TextDrawUseBox(TDChoseActors[playerid][3], 1);
- TextDrawBoxColor(TDChoseActors[playerid][3], 255);
- TextDrawTextSize(TDChoseActors[playerid][3], 20.000000, 20.000000);
- TDChoseActors[playerid][4] = TextDrawCreate(167.000000, 322.000000, "_");
- TextDrawAlignment(TDChoseActors[playerid][4], 2);
- TextDrawBackgroundColor(TDChoseActors[playerid][4], 255);
- TextDrawFont(TDChoseActors[playerid][4], 3);
- TextDrawLetterSize(TDChoseActors[playerid][4], 0.539999, 2.000000);
- TextDrawColor(TDChoseActors[playerid][4], -1);
- TextDrawSetOutline(TDChoseActors[playerid][4], 0);
- TextDrawSetProportional(TDChoseActors[playerid][4], 1);
- TextDrawSetShadow(TDChoseActors[playerid][4], 1);
- TextDrawUseBox(TDChoseActors[playerid][4], 1);
- TextDrawBoxColor(TDChoseActors[playerid][4], 255);
- TextDrawTextSize(TDChoseActors[playerid][4], 140.000000, 122.000000);
- TDChoseActors[playerid][5] = TextDrawCreate(167.000000, 323.000000, "GANGSTER");
- TextDrawAlignment(TDChoseActors[playerid][5], 2);
- TextDrawBackgroundColor(TDChoseActors[playerid][5], 255);
- TextDrawFont(TDChoseActors[playerid][5], 1);
- TextDrawLetterSize(TDChoseActors[playerid][5], 0.509999, 1.600000);
- TextDrawColor(TDChoseActors[playerid][5], -1);
- TextDrawSetOutline(TDChoseActors[playerid][5], 0);
- TextDrawSetProportional(TDChoseActors[playerid][5], 1);
- TextDrawSetShadow(TDChoseActors[playerid][5], 1);
- TextDrawUseBox(TDChoseActors[playerid][5], 1);
- TextDrawBoxColor(TDChoseActors[playerid][5], 255);
- TextDrawTextSize(TDChoseActors[playerid][5], 15.000000, 119.000000);
- TDChoseActors[playerid][6] = TextDrawCreate(252.000000, 155.000000, "LD_BEAT:down");
- TextDrawBackgroundColor(TDChoseActors[playerid][6], 255);
- TextDrawFont(TDChoseActors[playerid][6], 4);
- TextDrawLetterSize(TDChoseActors[playerid][6], 0.500000, 1.000000);
- TextDrawColor(TDChoseActors[playerid][6], 255);
- TextDrawSetOutline(TDChoseActors[playerid][6], 0);
- TextDrawSetProportional(TDChoseActors[playerid][6], 1);
- TextDrawSetShadow(TDChoseActors[playerid][6], 1);
- TextDrawUseBox(TDChoseActors[playerid][6], 1);
- TextDrawBoxColor(TDChoseActors[playerid][6], 255);
- TextDrawTextSize(TDChoseActors[playerid][6], 20.000000, 20.000000);
- TDChoseActors[playerid][7] = TextDrawCreate(267.000000, 140.000000, "_");
- TextDrawAlignment(TDChoseActors[playerid][7], 2);
- TextDrawBackgroundColor(TDChoseActors[playerid][7], 255);
- TextDrawFont(TDChoseActors[playerid][7], 3);
- TextDrawLetterSize(TDChoseActors[playerid][7], 0.539999, 2.000000);
- TextDrawColor(TDChoseActors[playerid][7], -1);
- TextDrawSetOutline(TDChoseActors[playerid][7], 0);
- TextDrawSetProportional(TDChoseActors[playerid][7], 1);
- TextDrawSetShadow(TDChoseActors[playerid][7], 1);
- TextDrawUseBox(TDChoseActors[playerid][7], 1);
- TextDrawBoxColor(TDChoseActors[playerid][7], 255);
- TextDrawTextSize(TDChoseActors[playerid][7], 140.000000, 122.000000);
- TDChoseActors[playerid][8] = TextDrawCreate(267.000000, 141.000000, "PROSTITUTA");
- TextDrawAlignment(TDChoseActors[playerid][8], 2);
- TextDrawBackgroundColor(TDChoseActors[playerid][8], 255);
- TextDrawFont(TDChoseActors[playerid][8], 1);
- TextDrawLetterSize(TDChoseActors[playerid][8], 0.509999, 1.600000);
- TextDrawColor(TDChoseActors[playerid][8], -1);
- TextDrawSetOutline(TDChoseActors[playerid][8], 0);
- TextDrawSetProportional(TDChoseActors[playerid][8], 1);
- TextDrawSetShadow(TDChoseActors[playerid][8], 1);
- TextDrawUseBox(TDChoseActors[playerid][8], 1);
- TextDrawBoxColor(TDChoseActors[playerid][8], 255);
- TextDrawTextSize(TDChoseActors[playerid][8], 15.000000, 119.000000);
- TDChoseActors[playerid][9] = TextDrawCreate(351.000000, 306.000000, "LD_BEAT:up");
- TextDrawBackgroundColor(TDChoseActors[playerid][9], 255);
- TextDrawFont(TDChoseActors[playerid][9], 4);
- TextDrawLetterSize(TDChoseActors[playerid][9], 0.500000, 1.000000);
- TextDrawColor(TDChoseActors[playerid][9], 255);
- TextDrawSetOutline(TDChoseActors[playerid][9], 0);
- TextDrawSetProportional(TDChoseActors[playerid][9], 1);
- TextDrawSetShadow(TDChoseActors[playerid][9], 1);
- TextDrawUseBox(TDChoseActors[playerid][9], 1);
- TextDrawBoxColor(TDChoseActors[playerid][9], 255);
- TextDrawTextSize(TDChoseActors[playerid][9], 20.000000, 20.000000);
- TDChoseActors[playerid][10] = TextDrawCreate(358.000000, 322.000000, "_");
- TextDrawAlignment(TDChoseActors[playerid][10], 2);
- TextDrawBackgroundColor(TDChoseActors[playerid][10], 255);
- TextDrawFont(TDChoseActors[playerid][10], 3);
- TextDrawLetterSize(TDChoseActors[playerid][10], 0.539999, 2.000000);
- TextDrawColor(TDChoseActors[playerid][10], -1);
- TextDrawSetOutline(TDChoseActors[playerid][10], 0);
- TextDrawSetProportional(TDChoseActors[playerid][10], 1);
- TextDrawSetShadow(TDChoseActors[playerid][10], 1);
- TextDrawUseBox(TDChoseActors[playerid][10], 1);
- TextDrawBoxColor(TDChoseActors[playerid][10], 255);
- TextDrawTextSize(TDChoseActors[playerid][10], 140.000000, 122.000000);
- TDChoseActors[playerid][11] = TextDrawCreate(442.000000, 141.000000, "MOTOQUEIRO");
- TextDrawAlignment(TDChoseActors[playerid][11], 2);
- TextDrawBackgroundColor(TDChoseActors[playerid][11], 255);
- TextDrawFont(TDChoseActors[playerid][11], 1);
- TextDrawLetterSize(TDChoseActors[playerid][11], 0.509999, 1.600000);
- TextDrawColor(TDChoseActors[playerid][11], -1);
- TextDrawSetOutline(TDChoseActors[playerid][11], 0);
- TextDrawSetProportional(TDChoseActors[playerid][11], 1);
- TextDrawSetShadow(TDChoseActors[playerid][11], 1);
- TextDrawUseBox(TDChoseActors[playerid][11], 1);
- TextDrawBoxColor(TDChoseActors[playerid][11], 255);
- TextDrawTextSize(TDChoseActors[playerid][11], 15.000000, 119.000000);
- TDChoseActors[playerid][12] = TextDrawCreate(439.000000, 155.000000, "LD_BEAT:down");
- TextDrawBackgroundColor(TDChoseActors[playerid][12], 255);
- TextDrawFont(TDChoseActors[playerid][12], 4);
- TextDrawLetterSize(TDChoseActors[playerid][12], 0.500000, 1.000000);
- TextDrawColor(TDChoseActors[playerid][12], 255);
- TextDrawSetOutline(TDChoseActors[playerid][12], 0);
- TextDrawSetProportional(TDChoseActors[playerid][12], 1);
- TextDrawSetShadow(TDChoseActors[playerid][12], 1);
- TextDrawUseBox(TDChoseActors[playerid][12], 1);
- TextDrawBoxColor(TDChoseActors[playerid][12], 255);
- TextDrawTextSize(TDChoseActors[playerid][12], 20.000000, 20.000000);
- TDChoseActors[playerid][13] = TextDrawCreate(442.000000, 140.000000, "_");
- TextDrawAlignment(TDChoseActors[playerid][13], 2);
- TextDrawBackgroundColor(TDChoseActors[playerid][13], 255);
- TextDrawFont(TDChoseActors[playerid][13], 3);
- TextDrawLetterSize(TDChoseActors[playerid][13], 0.539999, 2.000000);
- TextDrawColor(TDChoseActors[playerid][13], -1);
- TextDrawSetOutline(TDChoseActors[playerid][13], 0);
- TextDrawSetProportional(TDChoseActors[playerid][13], 1);
- TextDrawSetShadow(TDChoseActors[playerid][13], 1);
- TextDrawUseBox(TDChoseActors[playerid][13], 1);
- TextDrawBoxColor(TDChoseActors[playerid][13], 255);
- TextDrawTextSize(TDChoseActors[playerid][13], 140.000000, 122.000000);
- TDChoseActors[playerid][14] = TextDrawCreate(358.000000, 323.000000, "MAFIOSO");
- TextDrawAlignment(TDChoseActors[playerid][14], 2);
- TextDrawBackgroundColor(TDChoseActors[playerid][14], 255);
- TextDrawFont(TDChoseActors[playerid][14], 1);
- TextDrawLetterSize(TDChoseActors[playerid][14], 0.509999, 1.600000);
- TextDrawColor(TDChoseActors[playerid][14], -1);
- TextDrawSetOutline(TDChoseActors[playerid][14], 0);
- TextDrawSetProportional(TDChoseActors[playerid][14], 1);
- TextDrawSetShadow(TDChoseActors[playerid][14], 1);
- TextDrawUseBox(TDChoseActors[playerid][14], 1);
- TextDrawBoxColor(TDChoseActors[playerid][14], 255);
- TextDrawTextSize(TDChoseActors[playerid][14], 15.000000, 119.000000);
- TDChoseActors[playerid][15] = TextDrawCreate(539.000000, 306.000000, "LD_BEAT:up");
- TextDrawBackgroundColor(TDChoseActors[playerid][15], 255);
- TextDrawFont(TDChoseActors[playerid][15], 4);
- TextDrawLetterSize(TDChoseActors[playerid][15], 0.500000, 1.000000);
- TextDrawColor(TDChoseActors[playerid][15], 255);
- TextDrawSetOutline(TDChoseActors[playerid][15], 0);
- TextDrawSetProportional(TDChoseActors[playerid][15], 1);
- TextDrawSetShadow(TDChoseActors[playerid][15], 1);
- TextDrawUseBox(TDChoseActors[playerid][15], 1);
- TextDrawBoxColor(TDChoseActors[playerid][15], 255);
- TextDrawTextSize(TDChoseActors[playerid][15], 20.000000, 20.000000);
- TDChoseActors[playerid][16] = TextDrawCreate(547.000000, 322.000000, "_");
- TextDrawAlignment(TDChoseActors[playerid][16], 2);
- TextDrawBackgroundColor(TDChoseActors[playerid][16], 255);
- TextDrawFont(TDChoseActors[playerid][16], 3);
- TextDrawLetterSize(TDChoseActors[playerid][16], 0.539999, 2.000000);
- TextDrawColor(TDChoseActors[playerid][16], -1);
- TextDrawSetOutline(TDChoseActors[playerid][16], 0);
- TextDrawSetProportional(TDChoseActors[playerid][16], 1);
- TextDrawSetShadow(TDChoseActors[playerid][16], 1);
- TextDrawUseBox(TDChoseActors[playerid][16], 1);
- TextDrawBoxColor(TDChoseActors[playerid][16], 255);
- TextDrawTextSize(TDChoseActors[playerid][16], 140.000000, 122.000000);
- TDChoseActors[playerid][17] = TextDrawCreate(548.000000, 323.000000, "POLICIAL");
- TextDrawAlignment(TDChoseActors[playerid][17], 2);
- TextDrawBackgroundColor(TDChoseActors[playerid][17], 255);
- TextDrawFont(TDChoseActors[playerid][17], 1);
- TextDrawLetterSize(TDChoseActors[playerid][17], 0.509999, 1.600000);
- TextDrawColor(TDChoseActors[playerid][17], -1);
- TextDrawSetOutline(TDChoseActors[playerid][17], 0);
- TextDrawSetProportional(TDChoseActors[playerid][17], 1);
- TextDrawSetShadow(TDChoseActors[playerid][17], 1);
- TextDrawUseBox(TDChoseActors[playerid][17], 1);
- TextDrawBoxColor(TDChoseActors[playerid][17], 255);
- TextDrawTextSize(TDChoseActors[playerid][17], 15.000000, 119.000000);
- TDChoseActors[playerid][18] = TextDrawCreate(-730.000000, 58.000000, "_");
- TextDrawBackgroundColor(TDChoseActors[playerid][18], 255);
- TextDrawFont(TDChoseActors[playerid][18], 1);
- TextDrawLetterSize(TDChoseActors[playerid][18], 0.959999, 4.199999);
- TextDrawColor(TDChoseActors[playerid][18], -1);
- TextDrawSetOutline(TDChoseActors[playerid][18], 0);
- TextDrawSetProportional(TDChoseActors[playerid][18], 1);
- TextDrawSetShadow(TDChoseActors[playerid][18], 1);
- TextDrawUseBox(TDChoseActors[playerid][18], 1);
- TextDrawBoxColor(TDChoseActors[playerid][18], 255);
- TextDrawTextSize(TDChoseActors[playerid][18], 1000.000000, 10.000000);
- TDChoseActors[playerid][19] = TextDrawCreate(20.000000, 56.000000, "ESCOLHA SUA FUNCAO NO SERVIDOR");
- TextDrawBackgroundColor(TDChoseActors[playerid][19], 255);
- TextDrawFont(TDChoseActors[playerid][19], 1);
- TextDrawLetterSize(TDChoseActors[playerid][19], 0.959999, 4.199999);
- TextDrawColor(TDChoseActors[playerid][19], -1);
- TextDrawSetOutline(TDChoseActors[playerid][19], 0);
- TextDrawSetProportional(TDChoseActors[playerid][19], 1);
- TextDrawSetShadow(TDChoseActors[playerid][19], 1);
- TextDrawSetSelectable(TDChoseActors[playerid][2], true);
- TextDrawSetSelectable(TDChoseActors[playerid][5], true);
- TextDrawSetSelectable(TDChoseActors[playerid][8], true);
- TextDrawSetSelectable(TDChoseActors[playerid][11], true);
- TextDrawSetSelectable(TDChoseActors[playerid][14], true);
- TextDrawSetSelectable(TDChoseActors[playerid][17], true);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- HideChoseActors(playerid);
- DeletePVar(playerid, "FuncPlayerServidor");
- return 1;
- }
- CMD:chose(playerid)
- {
- ShowChoseActors(playerid);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- TogglePlayerSpectating(playerid, false);
- switch(GetPVarInt(playerid, "FuncPlayerServidor"))
- {
- case 1: SetPlayerSkin(playerid, 102);
- case 2: SetPlayerSkin(playerid, 106);
- case 3: SetPlayerSkin(playerid, 87);
- case 4: SetPlayerSkin(playerid, 248);
- case 5: SetPlayerSkin(playerid, 113);
- case 6: SetPlayerSkin(playerid, 306);
- default: SetPlayerSkin(playerid, random(311));
- }
- return 1;
- }
- public OnPlayerClickTextDraw(playerid, Text:clickedid)
- {
- if(clickedid == TDChoseActors[playerid][2])
- {
- HideChoseActors(playerid);
- SetPVarInt(playerid, "FuncPlayerServidor", 1);
- SpawnPlayer(playerid);
- return 1;
- }
- if(clickedid == TDChoseActors[playerid][5])
- {
- HideChoseActors(playerid);
- SetPVarInt(playerid, "FuncPlayerServidor", 2);
- SpawnPlayer(playerid);
- return 1;
- }
- if(clickedid == TDChoseActors[playerid][8])
- {
- HideChoseActors(playerid);
- SetPVarInt(playerid, "FuncPlayerServidor", 3);
- SpawnPlayer(playerid);
- return 1;
- }
- if(clickedid == TDChoseActors[playerid][11])
- {
- HideChoseActors(playerid);
- SetPVarInt(playerid, "FuncPlayerServidor", 4);
- SpawnPlayer(playerid);
- return 1;
- }
- if(clickedid == TDChoseActors[playerid][14])
- {
- HideChoseActors(playerid);
- SetPVarInt(playerid, "FuncPlayerServidor", 5);
- SpawnPlayer(playerid);
- return 1;
- }
- if(clickedid == TDChoseActors[playerid][17])
- {
- HideChoseActors(playerid);
- SetPVarInt(playerid, "FuncPlayerServidor", 6);
- SpawnPlayer(playerid);
- return 1;
- }
- return 1;
- }
- forward ShowTDs(playerid, Show);
- public ShowTDs(playerid, Show)
- {
- for(new i = 0; i < 100; ++i) SendClientMessage(playerid, -1, " ");
- if(Show == 1)
- {
- InterpolateCameraPos(playerid, 1555.575195, -1249.134155, 123.893646, 1642.711303, -1247.102294, 129.074752, 3000);
- InterpolateCameraLookAt(playerid, 1560.565063, -1249.017822, 124.190345, 1647.700683, -1247.067871, 129.398742, 3000);
- SetTimerEx("ShowTDs", 4000, false, "ii", playerid, 2);
- }
- else if(Show == 2)
- {
- SetPlayerCameraPos(playerid, 1642.711303, -1247.102294, 129.074752); //Só por segurança
- SetPlayerCameraLookAt(playerid, 1647.700683, -1247.067871, 129.398742); //Só por segurança
- ShowChoseActors(playerid);
- }
- return 1;
- }
- stock ShowChoseActors(playerid)
- {
- for(new i = 0; i < 20; ++i)
- {
- TextDrawShowForPlayer(playerid, TDChoseActors[playerid][i]);
- }
- SelectTextDraw(playerid, 0x00FF00FF); //Cor quando o mouse fica encima de algum item!
- return 1;
- }
- stock HideChoseActors(playerid)
- {
- for(new i = 0; i < 20; ++i)
- {
- TextDrawHideForPlayer(playerid, TDChoseActors[playerid][i]);
- }
- CancelSelectTextDraw(playerid);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement