Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define DIALOG_SLAP 0
- #define DIALOG_KICK 1
- #define DIALOG_KILL 2
- #define DIALOG_BAN 3
- #define DIALOG_EXPLODE 4
- #define DIALOG_MUTE 5
- #define DIALOG_UNMUTE 6
- #define DIALOG_DISARM 7
- #define DIALOG_SPAWN 8
- #define DIALOG_SKIN 9
- #define DIALOG_GOTO 10
- #define DIALOG_GET 11
- #define INFINITY (Float:0x7F800000)
- 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;
- new Text:Textdraw12;
- new Text:Textdraw13;
- new Text:Textdraw14;
- new Text:Textdraw15;
- new Text:Textdraw16;
- new Text:Textdraw17;
- new Text:Textdraw18;
- new Muted[MAX_PLAYERS];
- new GodMode[MAX_PLAYERS];
- public OnPlayerConnect(playerid)
- {
- GodMode[playerid] = 0;
- return 1;
- }
- public OnFilterScriptInit()
- {
- Textdraw0 = TextDrawCreate(566.000000, 144.113327, "usebox");
- TextDrawLetterSize(Textdraw0, 0.000000, 27.807779);
- TextDrawTextSize(Textdraw0, 65.199996, 0.000000);
- TextDrawAlignment(Textdraw0, 1);
- TextDrawColor(Textdraw0, 0);
- TextDrawUseBox(Textdraw0, true);
- TextDrawBoxColor(Textdraw0, 102);
- TextDrawSetShadow(Textdraw0, 0);
- TextDrawSetOutline(Textdraw0, 0);
- TextDrawFont(Textdraw0, 0);
- Textdraw1 = TextDrawCreate(224.799972, 139.626617, "Admin Menu:");
- TextDrawLetterSize(Textdraw1, 0.569199, 2.742399);
- TextDrawAlignment(Textdraw1, 1);
- TextDrawColor(Textdraw1, 16777215);
- TextDrawSetShadow(Textdraw1, 0);
- TextDrawSetOutline(Textdraw1, 1);
- TextDrawBackgroundColor(Textdraw1, 51);
- TextDrawFont(Textdraw1, 2);
- TextDrawSetProportional(Textdraw1, 1);
- Textdraw2 = TextDrawCreate(83.199981, 186.666671, "Slap");
- TextDrawLetterSize(Textdraw2, 0.555599, 2.406400);
- TextDrawAlignment(Textdraw2, 1);
- TextDrawColor(Textdraw2, -1);
- TextDrawSetShadow(Textdraw2, 0);
- TextDrawSetOutline(Textdraw2, 1);
- TextDrawBackgroundColor(Textdraw2, 51);
- TextDrawFont(Textdraw2, 2);
- TextDrawSetProportional(Textdraw2, 1);
- TextDrawSetSelectable(Textdraw2, true);
- Textdraw3 = TextDrawCreate(218.400024, 186.666625, "Kick");
- TextDrawLetterSize(Textdraw3, 0.567599, 2.279466);
- TextDrawAlignment(Textdraw3, 1);
- TextDrawColor(Textdraw3, -1);
- TextDrawSetShadow(Textdraw3, 0);
- TextDrawSetOutline(Textdraw3, 1);
- TextDrawBackgroundColor(Textdraw3, 51);
- TextDrawFont(Textdraw3, 2);
- TextDrawSetProportional(Textdraw3, 1);
- TextDrawSetSelectable(Textdraw3, true);
- Textdraw4 = TextDrawCreate(350.399780, 186.666625, "Kill");
- TextDrawLetterSize(Textdraw4, 0.606000, 2.361599);
- TextDrawAlignment(Textdraw4, 1);
- TextDrawColor(Textdraw4, -1);
- TextDrawSetShadow(Textdraw4, 0);
- TextDrawSetOutline(Textdraw4, 1);
- TextDrawBackgroundColor(Textdraw4, 51);
- TextDrawFont(Textdraw4, 2);
- TextDrawSetProportional(Textdraw4, 1);
- TextDrawSetSelectable(Textdraw4, true);
- Textdraw5 = TextDrawCreate(488.799896, 188.906692, "Ban");
- TextDrawLetterSize(Textdraw5, 0.606800, 2.264532);
- TextDrawAlignment(Textdraw5, 1);
- TextDrawColor(Textdraw5, -1);
- TextDrawSetShadow(Textdraw5, 0);
- TextDrawSetOutline(Textdraw5, 1);
- TextDrawBackgroundColor(Textdraw5, 51);
- TextDrawFont(Textdraw5, 2);
- TextDrawSetProportional(Textdraw5, 1);
- TextDrawSetSelectable(Textdraw5, true);
- Textdraw6 = TextDrawCreate(68.800018, 241.920013, "Explode");
- TextDrawLetterSize(Textdraw6, 0.590000, 2.354133);
- TextDrawAlignment(Textdraw6, 1);
- TextDrawColor(Textdraw6, -1);
- TextDrawSetShadow(Textdraw6, 0);
- TextDrawSetOutline(Textdraw6, 1);
- TextDrawBackgroundColor(Textdraw6, 51);
- TextDrawFont(Textdraw6, 2);
- TextDrawSetProportional(Textdraw6, 1);
- TextDrawSetSelectable(Textdraw6, true);
- Textdraw7 = TextDrawCreate(214.399993, 243.413299, "Mute");
- TextDrawLetterSize(Textdraw7, 0.561199, 2.189866);
- TextDrawAlignment(Textdraw7, 1);
- TextDrawColor(Textdraw7, -1);
- TextDrawSetShadow(Textdraw7, 0);
- TextDrawSetOutline(Textdraw7, 1);
- TextDrawBackgroundColor(Textdraw7, 51);
- TextDrawFont(Textdraw7, 2);
- TextDrawSetProportional(Textdraw7, 1);
- TextDrawSetSelectable(Textdraw7, true);
- Textdraw8 = TextDrawCreate(335.199981, 243.413330, "Unmute");
- TextDrawLetterSize(Textdraw8, 0.569999, 2.279466);
- TextDrawAlignment(Textdraw8, 1);
- TextDrawColor(Textdraw8, -1);
- TextDrawSetShadow(Textdraw8, 0);
- TextDrawSetOutline(Textdraw8, 1);
- TextDrawBackgroundColor(Textdraw8, 51);
- TextDrawFont(Textdraw8, 2);
- TextDrawSetProportional(Textdraw8, 1);
- TextDrawSetSelectable(Textdraw8, true);
- Textdraw9 = TextDrawCreate(465.599975, 243.413330, "Disarm");
- TextDrawLetterSize(Textdraw9, 0.562000, 2.361598);
- TextDrawAlignment(Textdraw9, 1);
- TextDrawColor(Textdraw9, -1);
- TextDrawSetShadow(Textdraw9, 0);
- TextDrawSetOutline(Textdraw9, 1);
- TextDrawBackgroundColor(Textdraw9, 51);
- TextDrawFont(Textdraw9, 2);
- TextDrawSetProportional(Textdraw9, 1);
- TextDrawSetSelectable(Textdraw9, true);
- Textdraw10 = TextDrawCreate(71.999984, 304.639984, "Spawn");
- TextDrawLetterSize(Textdraw10, 0.542800, 2.383999);
- TextDrawAlignment(Textdraw10, 1);
- TextDrawColor(Textdraw10, -1);
- TextDrawSetShadow(Textdraw10, 0);
- TextDrawSetOutline(Textdraw10, 1);
- TextDrawBackgroundColor(Textdraw10, 51);
- TextDrawFont(Textdraw10, 2);
- TextDrawSetProportional(Textdraw10, 1);
- TextDrawSetSelectable(Textdraw10, true);
- Textdraw11 = TextDrawCreate(213.600051, 304.639984, "Skin");
- TextDrawLetterSize(Textdraw11, 0.595600, 2.257067);
- TextDrawAlignment(Textdraw11, 1);
- TextDrawColor(Textdraw11, -1);
- TextDrawSetShadow(Textdraw11, 0);
- TextDrawSetOutline(Textdraw11, 1);
- TextDrawBackgroundColor(Textdraw11, 51);
- TextDrawFont(Textdraw11, 2);
- TextDrawSetProportional(Textdraw11, 1);
- TextDrawSetSelectable(Textdraw11, true);
- Textdraw12 = TextDrawCreate(343.200042, 304.640045, "Goto");
- TextDrawLetterSize(Textdraw12, 0.551600, 2.249599);
- TextDrawAlignment(Textdraw12, 1);
- TextDrawColor(Textdraw12, -1);
- TextDrawSetShadow(Textdraw12, 0);
- TextDrawSetOutline(Textdraw12, 1);
- TextDrawBackgroundColor(Textdraw12, 51);
- TextDrawFont(Textdraw12, 2);
- TextDrawSetProportional(Textdraw12, 1);
- TextDrawSetSelectable(Textdraw12, true);
- Textdraw13 = TextDrawCreate(468.799804, 303.893280, "Get");
- TextDrawLetterSize(Textdraw13, 0.627600, 2.428800);
- TextDrawAlignment(Textdraw13, 1);
- TextDrawColor(Textdraw13, -1);
- TextDrawSetShadow(Textdraw13, 0);
- TextDrawSetOutline(Textdraw13, 1);
- TextDrawBackgroundColor(Textdraw13, 51);
- TextDrawFont(Textdraw13, 2);
- TextDrawSetProportional(Textdraw13, 1);
- TextDrawSetSelectable(Textdraw13, true);
- Textdraw14 = TextDrawCreate(72.800010, 359.893249, "Heal");
- TextDrawLetterSize(Textdraw14, 0.627599, 2.354133);
- TextDrawAlignment(Textdraw14, 1);
- TextDrawColor(Textdraw14, -1);
- TextDrawSetShadow(Textdraw14, 0);
- TextDrawSetOutline(Textdraw14, 1);
- TextDrawBackgroundColor(Textdraw14, 51);
- TextDrawFont(Textdraw14, 2);
- TextDrawSetProportional(Textdraw14, 1);
- TextDrawSetSelectable(Textdraw14, true);
- Textdraw15 = TextDrawCreate(199.199996, 360.639984, "Armour");
- TextDrawLetterSize(Textdraw15, 0.537199, 2.279466);
- TextDrawAlignment(Textdraw15, 1);
- TextDrawColor(Textdraw15, -1);
- TextDrawSetShadow(Textdraw15, 0);
- TextDrawSetOutline(Textdraw15, 1);
- TextDrawBackgroundColor(Textdraw15, 51);
- TextDrawFont(Textdraw15, 2);
- TextDrawSetProportional(Textdraw15, 1);
- TextDrawSetSelectable(Textdraw15, true);
- Textdraw16 = TextDrawCreate(336.000061, 360.639984, "GodMode");
- TextDrawLetterSize(Textdraw16, 0.511600, 2.107733);
- TextDrawAlignment(Textdraw16, 1);
- TextDrawColor(Textdraw16, -1);
- TextDrawSetShadow(Textdraw16, 0);
- TextDrawSetOutline(Textdraw16, 1);
- TextDrawBackgroundColor(Textdraw16, 51);
- TextDrawFont(Textdraw16, 2);
- TextDrawSetProportional(Textdraw16, 1);
- TextDrawSetSelectable(Textdraw16, true);
- Textdraw17 = TextDrawCreate(565.200012, 372.593322, "usebox");
- TextDrawLetterSize(Textdraw17, 0.000000, 2.421112);
- TextDrawTextSize(Textdraw17, 490.000000, 0.000000);
- TextDrawAlignment(Textdraw17, 1);
- TextDrawColor(Textdraw17, 0);
- TextDrawUseBox(Textdraw17, true);
- TextDrawBoxColor(Textdraw17, 255);
- TextDrawSetShadow(Textdraw17, 0);
- TextDrawSetOutline(Textdraw17, 0);
- TextDrawFont(Textdraw17, 0);
- Textdraw18 = TextDrawCreate(498.399963, 376.319976, "Close");
- TextDrawLetterSize(Textdraw18, 0.449999, 1.600000);
- TextDrawAlignment(Textdraw18, 1);
- TextDrawColor(Textdraw18, -5963521);
- TextDrawSetShadow(Textdraw18, 0);
- TextDrawSetOutline(Textdraw18, 1);
- TextDrawBackgroundColor(Textdraw18, 51);
- TextDrawFont(Textdraw18, 2);
- TextDrawSetProportional(Textdraw18, 1);
- TextDrawSetSelectable(Textdraw18, true);
- return 1;
- }
- CMD:am(playerid, params[])
- {
- if(IsPlayerAdmin(playerid))
- {
- Show(playerid);
- SelectTextDraw(playerid, 0xFFFFFFFF);
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You aren't {FF0000}RCON");
- }
- return 1;
- }
- public OnPlayerClickTextDraw(playerid, Text:clickedid)
- {
- if(clickedid == Textdraw2)
- {
- ShowPlayerDialog(playerid, DIALOG_SLAP, DIALOG_STYLE_INPUT, "Slap","Please, input below the player's ID wich you want to get slaped:","Continue","Exit");
- }
- else if(clickedid == Textdraw3)
- {
- ShowPlayerDialog(playerid, DIALOG_KICK, DIALOG_STYLE_INPUT, "Kick","Please, input below the player's ID wich you want to kick:","Continue","Exit");
- }
- else if(clickedid == Textdraw4)
- {
- ShowPlayerDialog(playerid, DIALOG_KILL, DIALOG_STYLE_INPUT, "Kill","Please, input below the player's ID wich you want to kill:","Continue","Exit");
- }
- else if(clickedid == Textdraw5)
- {
- ShowPlayerDialog(playerid, DIALOG_BAN, DIALOG_STYLE_INPUT, "Ban","Please, input below the player's ID wich you want to ban:","Continue","Exit");
- }
- else if(clickedid == Textdraw6)
- {
- ShowPlayerDialog(playerid, DIALOG_EXPLODE, DIALOG_STYLE_INPUT, "Explode","Please, input below the player's ID wich you want to explode:","Continue","Exit");
- }
- else if(clickedid == Textdraw7)
- {
- ShowPlayerDialog(playerid, DIALOG_MUTE, DIALOG_STYLE_INPUT, "Mute","Please, input below the player's ID wich you want to mute:","Continue","Exit");
- }
- else if(clickedid == Textdraw8)
- {
- ShowPlayerDialog(playerid, DIALOG_UNMUTE, DIALOG_STYLE_INPUT, "UnMute","Please, input below the player's ID wich you want to unmute:","Continue","Exit");
- }
- else if(clickedid == Textdraw9)
- {
- ShowPlayerDialog(playerid, DIALOG_DISARM, DIALOG_STYLE_INPUT, "Disarm","Please, input below the player's ID wich you want to disarm:","Continue","Exit");
- }
- else if(clickedid == Textdraw10)
- {
- ShowPlayerDialog(playerid, DIALOG_SPAWN, DIALOG_STYLE_INPUT, "Spawn","Please, input below the player's ID wich you want to spawn:","Continue","Exit");
- }
- else if(clickedid == Textdraw11)
- {
- ShowPlayerDialog(playerid, DIALOG_SKIN, DIALOG_STYLE_INPUT, "Skin","Please, input below the Skin ID wich you want to use:","Continue","Exit");
- }
- else if(clickedid == Textdraw12)
- {
- ShowPlayerDialog(playerid, DIALOG_GOTO, DIALOG_STYLE_INPUT, "Goto","Please, input below the player's ID wich you want to teleport:","Continue","Exit");
- }
- else if(clickedid == Textdraw13)
- {
- ShowPlayerDialog(playerid, DIALOG_GET, DIALOG_STYLE_INPUT, "Get","Please, input below the player's ID wich you want to get:","Continue","Exit");
- }
- else if(clickedid == Textdraw14)
- {
- SetPlayerHealth(playerid, 100);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You got healed!");
- }
- else if(clickedid == Textdraw15)
- {
- SetPlayerArmour(playerid, 100);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You got armoured!");
- }
- else if(clickedid == Textdraw16)
- {
- if(GodMode[playerid] == 0)
- {
- SetPlayerHealth(playerid, INFINITY);
- SetPlayerArmour(playerid, INFINITY);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You activated GodMode!");
- GodMode[playerid] = 1;
- }
- else if(GodMode[playerid] == 1)
- {
- SetPlayerHealth(playerid, 100);
- SetPlayerArmour(playerid, 100);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You dezactivated GodMode!");
- GodMode[playerid] = 0;
- }
- }
- else if(clickedid == Textdraw18)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You closed Admin Menu!");
- Close(playerid);
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOG_SLAP)
- {
- if(response)
- {
- new ID, Float:X, Float:Y, Float:Z, name[MAX_PLAYER_NAME], pname[MAX_PLAYER_NAME], string[128];
- ID = strval(inputtext);
- if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Player isn't connected!");
- GetPlayerPos(ID, X, Y, Z);
- SetPlayerPos(ID, X, Y, Z+15);
- GetPlayerName(ID, pname, sizeof(pname));
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "You have slaped {FF0000}%s!", pname);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You got slaped by {FF0000}%s!", name);
- SendClientMessage(ID, COLOR_LIGHTBLUE, string);
- }
- }
- if(dialogid == DIALOG_KICK)
- {
- if(response)
- {
- new ID, name[MAX_PLAYER_NAME], pname[MAX_PLAYER_NAME], string[128];
- ID = strval(inputtext);
- if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Player isn't connected!");
- GetPlayerName(ID, pname, sizeof(pname));
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "You have kicked {FF0000}%s!", pname);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You got kicked by {FF0000}%s!", name);
- SendClientMessage(ID, COLOR_LIGHTBLUE, string);
- Kick(ID);
- }
- }
- if(dialogid == DIALOG_KILL)
- {
- if(response)
- {
- new ID, name[MAX_PLAYER_NAME], pname[MAX_PLAYER_NAME], string[128];
- ID = strval(inputtext);
- if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Player isn't connected!");
- GetPlayerName(ID, pname, sizeof(pname));
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "You have killed {FF0000}%s!", pname);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You got killed by {FF0000}%s!", name);
- SendClientMessage(ID, COLOR_LIGHTBLUE, string);
- SetPlayerHealth(ID, 0.0);
- }
- }
- if(dialogid == DIALOG_BAN)
- {
- if(response)
- {
- new ID, name[MAX_PLAYER_NAME], pname[MAX_PLAYER_NAME], string[128];
- ID = strval(inputtext);
- if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Player isn't connected!");
- GetPlayerName(ID, pname, sizeof(pname));
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "You have banned {FF0000}%s!", pname);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You got banned by {FF0000}%s!", name);
- SendClientMessage(ID, COLOR_LIGHTBLUE, string);
- Ban(ID);
- }
- }
- if(dialogid == DIALOG_EXPLODE)
- {
- if(response)
- {
- new ID, name[MAX_PLAYER_NAME], pname[MAX_PLAYER_NAME], string[128], Float:X, Float:Y, Float:Z;
- ID = strval(inputtext);
- if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Player isn't connected!");
- GetPlayerName(ID, pname, sizeof(pname));
- GetPlayerName(playerid, name, sizeof(name));
- GetPlayerPos(ID, X, Y, Z);
- format(string, sizeof(string), "You have exploded {FF0000}%s!", pname);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You got exploded by {FF0000}%s!", name);
- SendClientMessage(ID, COLOR_LIGHTBLUE, string);
- CreateExplosion(X, Y, Z, 12, 100.0);
- }
- }
- if(dialogid == DIALOG_MUTE)
- {
- if(response)
- {
- new ID, name[MAX_PLAYER_NAME], pname[MAX_PLAYER_NAME], string[128];
- ID = strval(inputtext);
- if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Player isn't connected!");
- GetPlayerName(ID, pname, sizeof(pname));
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "You have muted {FF0000}%s!", pname);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You got muted by {FF0000}%s!", name);
- SendClientMessage(ID, COLOR_LIGHTBLUE, string);
- Muted[playerid] = 1;
- }
- }
- if(dialogid == DIALOG_UNMUTE)
- {
- if(response)
- {
- new ID, name[MAX_PLAYER_NAME], pname[MAX_PLAYER_NAME], string[128];
- ID = strval(inputtext);
- if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Player isn't connected!");
- if(Muted[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Player isn't muted!");
- GetPlayerName(ID, pname, sizeof(pname));
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "You have unmuted {FF0000}%s!", pname);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You got unmuted by {FF0000}%s!", name);
- SendClientMessage(ID, COLOR_LIGHTBLUE, string);
- Muted[playerid] = 0;
- }
- }
- if(dialogid == DIALOG_DISARM)
- {
- if(response)
- {
- new ID, name[MAX_PLAYER_NAME], pname[MAX_PLAYER_NAME], string[128];
- ID = strval(inputtext);
- if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Player isn't connected!");
- GetPlayerName(ID, pname, sizeof(pname));
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "You have disarmed {FF0000}%s!", pname);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You got disarmed by {FF0000}%s!", name);
- SendClientMessage(ID, COLOR_LIGHTBLUE, string);
- ResetPlayerWeapons(ID);
- }
- }
- if(dialogid == DIALOG_SPAWN)
- {
- if(response)
- {
- new ID, name[MAX_PLAYER_NAME], pname[MAX_PLAYER_NAME], string[128];
- ID = strval(inputtext);
- if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Player isn't connected!");
- GetPlayerName(ID, pname, sizeof(pname));
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "You have spawned {FF0000}%s!", pname);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You got spawned by {FF0000}%s!", name);
- SendClientMessage(ID, COLOR_LIGHTBLUE, string);
- SpawnPlayer(ID);
- }
- }
- if(dialogid == DIALOG_SKIN)
- {
- if(response)
- {
- new ID;
- ID = strval(inputtext);
- if(ID > 299) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Skin isn't good!");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You changed your skin");
- SetPlayerSkin(playerid, ID);
- }
- }
- if(dialogid == DIALOG_GOTO)
- {
- if(response)
- {
- new ID, name[MAX_PLAYER_NAME], pname[MAX_PLAYER_NAME], string[128], Float:X, Float:Y, Float:Z;
- ID = strval(inputtext);
- if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Player isn't connected!");
- GetPlayerName(ID, pname, sizeof(pname));
- GetPlayerName(playerid, name, sizeof(name));
- GetPlayerPos(ID, X, Y, Z);
- SetPlayerPos(playerid, X, Y, Z);
- format(string, sizeof(string), "You teleported to {FF0000}%s!", pname);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "{FF0000}%s teleported to you!", name);
- SendClientMessage(ID, COLOR_LIGHTBLUE, string);
- }
- }
- if(dialogid == DIALOG_GET)
- {
- if(response)
- {
- new ID, name[MAX_PLAYER_NAME], pname[MAX_PLAYER_NAME], string[128], Float:X, Float:Y, Float:Z;
- ID = strval(inputtext);
- if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Player isn't connected!");
- GetPlayerName(ID, pname, sizeof(pname));
- GetPlayerName(playerid, name, sizeof(name));
- GetPlayerPos(playerid, X, Y, Z);
- SetPlayerPos(ID, X, Y, Z);
- format(string, sizeof(string), "You get to you position {FF0000}%s!", pname);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "{FF0000}%s getted you to his position!", name);
- SendClientMessage(ID, COLOR_LIGHTBLUE, string);
- }
- }
- return 1;
- }
- stock Show(playerid)
- {
- 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);
- TextDrawShowForPlayer(playerid, Textdraw12);
- TextDrawShowForPlayer(playerid, Textdraw13);
- TextDrawShowForPlayer(playerid, Textdraw14);
- TextDrawShowForPlayer(playerid, Textdraw15);
- TextDrawShowForPlayer(playerid, Textdraw16);
- TextDrawShowForPlayer(playerid, Textdraw17);
- TextDrawShowForPlayer(playerid, Textdraw18);
- return 1;
- }
- stock Close(playerid)
- {
- 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);
- TextDrawHideForPlayer(playerid, Textdraw12);
- TextDrawHideForPlayer(playerid, Textdraw13);
- TextDrawHideForPlayer(playerid, Textdraw14);
- TextDrawHideForPlayer(playerid, Textdraw15);
- TextDrawHideForPlayer(playerid, Textdraw16);
- TextDrawHideForPlayer(playerid, Textdraw17);
- TextDrawHideForPlayer(playerid, Textdraw18);
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- if(Muted[playerid] == 1) return 0;
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement