Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- MADE BY : HY
- DATE: 21/10/2014
- CREDITS: HY, ZEEX [Thanks for ZCMD Zeex]
- • Don't remove credits !
- • Feel free to edit him and post on your server as yours !
- */
- #include <a_samp>
- #include <zcmd>
- new Text:Textdraw0;
- new Text:Textdraw1;
- new Text:Textdraw2;
- new Text:Textdraw3;
- new Text:Textdraw4;
- new Text:Textdraw5;
- new Text:Textdraw6;
- new Text:Textdraw7;
- new Text:Textdraw8;
- new Text:Textdraw9;
- new Text:Textdraw10;
- new Text:Textdraw11;
- public OnGameModeInit()
- {
- Textdraw0 = TextDrawCreate(641.199951, 206.833343, "usebox");
- TextDrawLetterSize(Textdraw0, 0.000000, 26.563331);
- TextDrawTextSize(Textdraw0, 446.800018, 0.000000);
- TextDrawAlignment(Textdraw0, 1);
- TextDrawColor(Textdraw0, 0);
- TextDrawUseBox(Textdraw0, true);
- TextDrawBoxColor(Textdraw0, 255);
- TextDrawSetShadow(Textdraw0, 0);
- TextDrawSetOutline(Textdraw0, 0);
- TextDrawFont(Textdraw0, 0);
- Textdraw1 = TextDrawCreate(464.799987, 219.520004, "LD_SPAC:white");
- TextDrawLetterSize(Textdraw1, 0.000000, 0.000000);
- TextDrawTextSize(Textdraw1, 162.400024, 212.799972);
- TextDrawAlignment(Textdraw1, 1);
- TextDrawColor(Textdraw1, -1);
- TextDrawSetShadow(Textdraw1, 0);
- TextDrawSetOutline(Textdraw1, 0);
- TextDrawFont(Textdraw1, 4);
- Textdraw2 = TextDrawCreate(472.000030, 246.399978, "hud:radar_girlfriend");
- TextDrawLetterSize(Textdraw2, 0.000000, 0.000000);
- TextDrawTextSize(Textdraw2, 43.200019, 29.866680);
- TextDrawAlignment(Textdraw2, 1);
- TextDrawColor(Textdraw2, -1);
- TextDrawSetShadow(Textdraw2, 0);
- TextDrawSetOutline(Textdraw2, 0);
- TextDrawFont(Textdraw2, 4);
- TextDrawSetSelectable(Textdraw2, true);
- Textdraw3 = TextDrawCreate(567.199890, 247.893386, "hud:radar_ZERO");
- TextDrawLetterSize(Textdraw3, 0.000000, 0.000000);
- TextDrawTextSize(Textdraw3, 35.999984, 29.119995);
- TextDrawAlignment(Textdraw3, 1);
- TextDrawColor(Textdraw3, -1);
- TextDrawSetShadow(Textdraw3, 0);
- TextDrawSetOutline(Textdraw3, 0);
- TextDrawFont(Textdraw3, 4);
- TextDrawSetSelectable(Textdraw3, true);
- Textdraw4 = TextDrawCreate(503.199890, 292.693450, "Clearchat");
- TextDrawLetterSize(Textdraw4, 0.449999, 1.600000);
- TextDrawAlignment(Textdraw4, 1);
- TextDrawColor(Textdraw4, 16777215);
- TextDrawSetShadow(Textdraw4, 0);
- TextDrawSetOutline(Textdraw4, 1);
- TextDrawBackgroundColor(Textdraw4, 51);
- TextDrawFont(Textdraw4, 1);
- TextDrawSetProportional(Textdraw4, 1);
- TextDrawSetSelectable(Textdraw4, true);
- Textdraw5 = TextDrawCreate(501.599945, 324.799926, "GodMode");
- TextDrawLetterSize(Textdraw5, 0.449999, 1.600000);
- TextDrawAlignment(Textdraw5, 1);
- TextDrawColor(Textdraw5, -16776961);
- TextDrawSetShadow(Textdraw5, 0);
- TextDrawSetOutline(Textdraw5, 1);
- TextDrawBackgroundColor(Textdraw5, 51);
- TextDrawFont(Textdraw5, 1);
- TextDrawSetProportional(Textdraw5, 1);
- TextDrawSetSelectable(Textdraw5, true);
- Textdraw6 = TextDrawCreate(500.799896, 355.413299, "Weapons");
- TextDrawLetterSize(Textdraw6, 0.449999, 1.600000);
- TextDrawAlignment(Textdraw6, 1);
- TextDrawColor(Textdraw6, 65535);
- TextDrawSetShadow(Textdraw6, 0);
- TextDrawSetOutline(Textdraw6, 1);
- TextDrawBackgroundColor(Textdraw6, 51);
- TextDrawFont(Textdraw6, 1);
- TextDrawSetProportional(Textdraw6, 1);
- TextDrawSetSelectable(Textdraw6, true);
- Textdraw7 = TextDrawCreate(498.731445, 383.623382, "Spawn me");
- TextDrawLetterSize(Textdraw7, 0.449999, 1.600000);
- TextDrawAlignment(Textdraw7, 1);
- TextDrawColor(Textdraw7, -5963521);
- TextDrawSetShadow(Textdraw7, 0);
- TextDrawSetOutline(Textdraw7, 1);
- TextDrawBackgroundColor(Textdraw7, 51);
- TextDrawFont(Textdraw7, 1);
- TextDrawSetProportional(Textdraw7, 1);
- TextDrawSetSelectable(Textdraw7, true);
- Textdraw8 = TextDrawCreate(515.200012, 203.839935, "iPhone");
- TextDrawLetterSize(Textdraw8, 0.449999, 1.600000);
- TextDrawAlignment(Textdraw8, 1);
- TextDrawColor(Textdraw8, -1);
- TextDrawSetShadow(Textdraw8, 0);
- TextDrawSetOutline(Textdraw8, 1);
- TextDrawBackgroundColor(Textdraw8, 51);
- TextDrawFont(Textdraw8, 1);
- TextDrawSetProportional(Textdraw8, 1);
- Textdraw9 = TextDrawCreate(578.400268, 217.279968, "15:38");
- TextDrawLetterSize(Textdraw9, 0.449999, 1.600000);
- TextDrawAlignment(Textdraw9, 1);
- TextDrawColor(Textdraw9, -16711681);
- TextDrawSetShadow(Textdraw9, 0);
- TextDrawSetOutline(Textdraw9, 1);
- TextDrawBackgroundColor(Textdraw9, 51);
- TextDrawFont(Textdraw9, 1);
- TextDrawSetProportional(Textdraw9, 1);
- Textdraw10 = TextDrawCreate(469.600097, 222.506607, "LD_SPAC:white");
- TextDrawLetterSize(Textdraw10, 0.000000, 0.000000);
- TextDrawTextSize(Textdraw10, 36.800006, 7.466674);
- TextDrawAlignment(Textdraw10, 1);
- TextDrawColor(Textdraw10, 16711935);
- TextDrawSetShadow(Textdraw10, 0);
- TextDrawSetOutline(Textdraw10, 0);
- TextDrawFont(Textdraw10, 4);
- Textdraw11 = TextDrawCreate(534.400085, 432.319946, "ld_pool:ball");
- TextDrawLetterSize(Textdraw11, 0.000000, 0.000000);
- TextDrawTextSize(Textdraw11, 23.200010, 15.679999);
- TextDrawAlignment(Textdraw11, 1);
- TextDrawColor(Textdraw11, -1);
- TextDrawSetShadow(Textdraw11, 0);
- TextDrawSetOutline(Textdraw11, 0);
- TextDrawFont(Textdraw11, 4);
- //==========================================================================
- TextDrawSetSelectable(Textdraw2, true);
- TextDrawSetSelectable(Textdraw3, true);
- TextDrawSetSelectable(Textdraw4, true);
- TextDrawSetSelectable(Textdraw5, true);
- TextDrawSetSelectable(Textdraw6, true);
- TextDrawSetSelectable(Textdraw7, true);
- return 1;
- }
- public OnPlayerClickTextDraw(playerid, Text:clickedid)
- {
- if(clickedid == Textdraw2)
- {
- SendClientMessage(playerid, 0xFFFFFFAA, "{FF0000}iPhone: {0066CC}You have been healed !");
- SetPlayerHealth(playerid, 100);
- }
- if(clickedid == Textdraw3)
- {
- SendClientMessage(playerid, 0xFFFFFFAA, "{FF0000}iPhone: {0066CC}You received armour !");
- SetPlayerArmour(playerid, 100);
- }
- if(clickedid == Textdraw4)
- {
- SendClientMessageToAll(-1, " ");
- SendClientMessageToAll(-1, " ");
- SendClientMessageToAll(-1, " ");
- SendClientMessageToAll(-1, " ");
- SendClientMessageToAll(-1, " ");
- SendClientMessageToAll(-1, " ");
- SendClientMessageToAll(-1, " ");
- SendClientMessageToAll(-1, " ");
- SendClientMessageToAll(-1, " ");
- SendClientMessageToAll(-1, " ");
- SendClientMessageToAll(-1, " ");
- SendClientMessageToAll(-1, " ");
- SendClientMessageToAll(-1, " ");
- SendClientMessageToAll(-1, " ");
- SendClientMessageToAll(-1, " ");
- SendClientMessageToAll(-1, " ");
- SendClientMessageToAll(-1, " ");
- SendClientMessageToAll(-1, " ");
- SendClientMessageToAll(-1, " ");
- SendClientMessageToAll(-1, " ");
- SendClientMessageToAll(-1, " ");
- SendClientMessageToAll(-1, " ");
- SendClientMessage(playerid, 0xFFFFFFAA, "{FF0000}iPhone: {0066CC}You have cleared the {FFFF00}chat !");
- }
- if(clickedid == Textdraw6)
- {
- SendClientMessage(playerid, 0xFFFFFFAA, "{FF0000}iPhone: {0066CC}You received {FFFF00}Weapons Pack !");
- GivePlayerWeapon(playerid, 24, 9999);
- GivePlayerWeapon(playerid, 28, 9999);
- GivePlayerWeapon(playerid, 29, 9999);
- GivePlayerWeapon(playerid, 30, 9999);
- GivePlayerWeapon(playerid, 31, 9999);
- GivePlayerWeapon(playerid, 34, 9999);
- }
- if(clickedid == Textdraw5)
- {
- SendClientMessage(playerid, 0xFFFFFFAA, "{FF0000}iPhone: {0066CC}Now, you have {FFFF00}infinity life !");
- GivePlayerWeapon(playerid, 24, 9999);
- GivePlayerWeapon(playerid, 28, 9999);
- GivePlayerWeapon(playerid, 29, 9999);
- GivePlayerWeapon(playerid, 30, 9999);
- GivePlayerWeapon(playerid, 31, 9999);
- GivePlayerWeapon(playerid, 34, 9999);
- }
- if(clickedid == Textdraw7)
- {
- SendClientMessage(playerid, 0xFFFFFFAA, "{FF0000}iPhone: {0066CC}You have been succesfully {FFFF00}spawned !");
- SpawnPlayer(playerid);
- }
- return 1;
- }
- CMD:iphoneon(playerid,params[])
- {
- TextDrawShowForPlayer(playerid, Textdraw0);
- TextDrawShowForPlayer(playerid, Textdraw1);
- TextDrawShowForPlayer(playerid, Textdraw2);
- TextDrawShowForPlayer(playerid, Textdraw3);
- TextDrawShowForPlayer(playerid, Textdraw4);
- TextDrawShowForPlayer(playerid, Textdraw5);
- TextDrawShowForPlayer(playerid, Textdraw6);
- TextDrawShowForPlayer(playerid, Textdraw7);
- TextDrawShowForPlayer(playerid, Textdraw8);
- TextDrawShowForPlayer(playerid, Textdraw9);
- TextDrawShowForPlayer(playerid, Textdraw10);
- TextDrawShowForPlayer(playerid, Textdraw11);
- SendClientMessage(playerid,-1,"{FF0000}iPhone: {0066CC}You opened {FF0000}iPhone {FFFF00}Admin Menu {0066CC}!");
- SelectTextDraw(playerid, 0xA3B4C5FF);
- return 1;
- }
- CMD:iphoneoff(playerid,params[])
- {
- TextDrawHideForPlayer(playerid, Textdraw0);
- TextDrawHideForPlayer(playerid, Textdraw1);
- TextDrawHideForPlayer(playerid, Textdraw2);
- TextDrawHideForPlayer(playerid, Textdraw3);
- TextDrawHideForPlayer(playerid, Textdraw4);
- TextDrawHideForPlayer(playerid, Textdraw5);
- TextDrawHideForPlayer(playerid, Textdraw6);
- TextDrawHideForPlayer(playerid, Textdraw7);
- TextDrawHideForPlayer(playerid, Textdraw8);
- TextDrawHideForPlayer(playerid, Textdraw9);
- TextDrawHideForPlayer(playerid, Textdraw10);
- TextDrawHideForPlayer(playerid, Textdraw11);
- SendClientMessage(playerid,-1,"{FF0000}iPhone: {0066CC}You closed {FF0000}iPhone {FFFF00}Admin Menu {0066CC}!");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement