Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(dialogid == DIALOG_ADMIN)
- {
- if(response)
- {
- new ClickP = GetPVarInt(playerid, "clickplayer");
- switch(listitem)
- {
- case 0://KICK
- {
- SCM(ClickP, ROSSO, "[!] {FFFFFF}Sei stato kickato da un admin.");
- SetTimerEx("KickPlayerClick", 100, false, "i", ClickP);
- }
- case 1://MUTE
- {
- if(Muto[ClickP] == 0){
- Muto[ClickP] = 1;
- SCM(ClickP, ROSSO, "[!] {FFFFFF}Sei stato mutato");}else{
- Muto[ClickP] = 0;
- SCM(ClickP, ROSSO, "[!] {FFFFFF}Sei stato smutato");}
- }
- case 2://SPEC
- {
- }
- case 3://Specoff
- {
- }
- case 4://GOTO
- {
- if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COLOR_GRAD2, NOTADMIN);
- new vehicleid = GetPlayerVehicleID(playerid);
- new pinterior = GetPlayerInterior(ClickP);
- new Float:x, Float:y, Float:z;
- if(IsPlayerInAnyVehicle(ClickP))
- {
- if(IsSeatTaken(GetPlayerVehicleID(ClickP), 0))
- {
- GetPlayerPos(ClickP, x, y, z);
- SetPlayerPos(playerid, x+1, y+1, z);
- PutPlayerInVehicle(playerid, GetPlayerVehicleID(ClickP), 1);
- SetPlayerInterior(playerid, pinterior);
- }
- else if(IsSeatTaken(GetPlayerVehicleID(ClickP), 1))
- {
- GetPlayerPos(ClickP, x, y, z);
- SetPlayerPos(playerid, x+1, y+1, z);
- PutPlayerInVehicle(playerid, GetPlayerVehicleID(ClickP), 2);
- SetPlayerInterior(playerid, pinterior);
- }
- else if(IsSeatTaken(GetPlayerVehicleID(ClickP), 2))
- {
- GetPlayerPos(ClickP, x, y, z);
- SetPlayerPos(playerid, x+1, y+1, z);
- PutPlayerInVehicle(playerid, GetPlayerVehicleID(ClickP), 3);
- SetPlayerInterior(playerid, pinterior);
- }
- else if(IsSeatTaken(GetPlayerVehicleID(ClickP), 3))
- {
- GetPlayerPos(ClickP, x, y, z);
- SetPlayerPos(playerid, x+1, y+1, z);
- SetPlayerInterior(playerid, pinterior);
- }
- }
- else if(!IsPlayerInAnyVehicle(ClickP))
- {
- SetPlayerInterior(playerid, pinterior);
- GetPlayerPos(ClickP, x, y, z);
- SetPlayerPos(playerid, x+1, y+1, z);
- SetVehiclePos(vehicleid, x, y, z);
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- else if(IsPlayerInAnyVehicle(ClickP) && IsPlayerInAnyVehicle(playerid))
- {
- SetPlayerInterior(playerid, pinterior);
- GetPlayerPos(ClickP, x, y, z);
- SetPlayerPos(playerid, x+1, y+1, z);
- SetVehiclePos(vehicleid, x, y, z);
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- }
- case 5://GETHERE
- {
- new Float:x, Float:y, Float:z;
- new vw = GetPlayerVirtualWorld(playerid);
- new interior = GetPlayerInterior(playerid);
- GetPlayerPos(playerid, x, y, z);
- SetPlayerPos(ClickP, x+1, y+1, z);
- GetPlayerVirtualWorld(playerid);
- SetPlayerVirtualWorld(ClickP, vw);
- SetPlayerInterior(ClickP, interior);
- }
- case 6://PM
- {
- new text[128], string[128];
- format(string, sizeof(string), "(( [PM] a %s[ID:%d]: %s ))", RemoveUnderScore(ClickP),ClickP, text);
- SCM(playerid, GIALLO, string);
- format(string, sizeof(string), "(( [PM] da %s[ID:%d]: %s ))", RemoveUnderScore(playerid),playerid, text);
- SCM(ClickP, 0xEAFF00FF, string);
- PlayerPlaySound(ClickP,1057,0.0,0.0,0.0);
- }
- case 7://FREEZE
- {
- new string[128];
- TogglePlayerControllable(ClickP,0);
- format(string, sizeof(string), "[!] {FFFFFF}Hai freezato %s",RemoveUnderScore(ClickP));
- SCM(playerid,ROSSO,string);
- }
- case 8://UNFREEZE
- {
- new string[128];
- TogglePlayerControllable(ClickP,1);
- format(string, sizeof(string), "[!] {FFFFFF}Hai unfreezato %s",RemoveUnderScore(ClickP));
- SCM(playerid,ROSSO,string);
- }
- case 9:
- {
- //DAIARMA
- }
- case 10:
- {
- //SETSKIN
- }
- case 11:
- {
- //SETHP
- }
- case 12:
- {
- //SETARMOR
- }
- case 13://LOCKPG
- {
- new string[128];
- format(string, sizeof(string), "[!] {FFFFFF}Hai Lockato il pg di %s",RemoveUnderScore(ClickP));
- SCM(playerid,ROSSO,string);
- SCM(ClickP,-1,"IL TUO PG E' STATO LOCCATO PER MORTE IC");
- PlayerInfo[ClickP][pLock] = 1;
- SetTimerEx("KickPlayerClick", 100, false, "i", ClickP);
- }
- case 14://BAN
- {
- SCM(ClickP, ROSSO, "[!] {FFFFFF}Sei stato bannato!");
- SetTimerEx("BanPlayerClick", 100, false, "i", ClickP);
- }
- }
- }
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- new string[250];
- format(string, sizeof(string),"Moderazione per '{FFEE00}%s(ID:%d){FFFFFF}'",GetName(clickedplayerid),clickedplayerid);
- if(PlayerInfo[playerid][pAdmin] == 1 ) return ShowPlayerDialog(playerid, DIALOG_ADMIN, DIALOG_STYLE_LIST, string, "Kick\nMuta\nSpec\nSpecoff\nGoto\nGethere\nPm\nFreeze\nUnfreeze\nDaiarma\nSetskin\nSethp\nSetarmor", "Esegui", "Annulla");
- if(PlayerInfo[playerid][pAdmin] == 2 ) return ShowPlayerDialog(playerid, DIALOG_ADMIN, DIALOG_STYLE_LIST, string, "Kick\nMuta\nSpec\nSpecoff\nGoto\nGethere\nPm\nFreeze\nUnfreeze\nDaiarma\nSetskin\nSethp\nSetarmor\nLockpg\nBan", "Esegui", "Annulla");
- if(PlayerInfo[playerid][pAdmin] == 0 ) return SCM(playerid, ROSSO, NOTADMIN);
- SetPVarInt(playerid, "clickplayer",clickedplayerid);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement