Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Comandi di Alex*/
- #include <a_samp>
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_YELLOW 0xFFFF00AA
- #define Dialog 8786
- #define Dialoga 8789
- #pragma tabsize 0
- new name[MAX_PLAYER_NAME];
- new string[128];
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/comandidivertenti", cmdtext, true, 10) == 0){
- ShowPlayerDialog(playerid, Dialog,DIALOG_STYLE_LIST,"Lista dei comandi divertenti", "nabbo\ndiventaadmin", "Seleziona", "Esci");
- return 1;}
- if (strcmp("/teles", cmdtext, true, 10) == 0){
- ShowPlayerDialog(playerid, Dialoga,DIALOG_STYLE_LIST,"Lista teles", "Ls\nLv\nSf\nDrift1", "Seleziona", "Esci");
- return 1;}
- return 1;}
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == Dialog)
- {
- if(response)
- {
- if(listitem == 0)
- {
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "{00FF00}[TFS]Auto ha {FFFFFF}kickato %s! {FF0000}[motivo: il nabbo lo sei tu!] ", name);
- SendClientMessageToAll(COLOR_YELLOW, string);
- GameTextForPlayer(playerid, "KICKATO!", 5000000, 5);
- SendClientMessage(playerid, COLOR_YELLOW, "[TFS]Auto ti ha kickato... Motivo? Il nabbo lo sei tu!!");
- Kick(playerid);
- }
- if(listitem == 1)
- {
- SetPlayerSkin(playerid, 167);
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "{00FF00}%s {FFFFFF}è admin! Fallo{FF0000} anche tu! (/diventaadmin)", name);
- SendClientMessageToAll(COLOR_GREEN, string);
- }
- }
- return 1;
- }
- if(dialogid == Dialoga)
- {
- if(response)
- {
- if(listitem == 0)
- {
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "{00FF00}%s {FFFFFF}è andato{FF0000}a Los Santos (/lv)", name);
- SendClientMessageToAll(COLOR_GREEN, string);
- SetPlayerPos(playerid,1593.6757,-1315.7917,17.4821);
- }
- if(listitem == 1)
- {
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "{00FF00}%s {FFFFFF}è andato{FF0000}a Las Venturas (/lv)", name);
- SendClientMessageToAll(COLOR_GREEN, string);
- SetPlayerPos(playerid,2026.7477,1008.9435,10.8203);
- }
- if(listitem == 2)
- {
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "{00FF00}%s {FFFFFF}è andato{FF0000}a San Fierro (/sf)", name);
- SendClientMessageToAll(COLOR_GREEN, string);
- SetPlayerPos(playerid,-1986.8064,140.7033,27.5390);
- }
- if(listitem == 3)
- {
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "%{00FF00}%s {FFFFFF}è andato{FF0000}a /drift1!", name);
- SendClientMessageToAll(COLOR_GREEN, string);
- SetPlayerPos(playerid,-350.6609,1529.5605,75.3594);
- }
- }
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment