public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
if(!IsPlayerNPC(clickedplayerid))
{
SPD(playerid,23,DIALOG_STYLE_LIST,"INFORMACIJE I ADMINISTRACIJA","Informacije o igracu\nAdministracija","Odaberi","Izlaz");
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{if(dialogid == admpanel && response)
{
if(listitem == 0) // FREEZE
{
if(IsAfk[pClicked] == 0)
{
new string;
new aAdmin[MAX_PLAYER_NAME+1];
GetPlayerName(playerid,aAdmin,sizeof aAdmin);
format(string,sizeof string,"Freezani ste od strane admina %s !",aAdmin);
SCM(pClicked,COLOR_RED,string);
TogglePlayerControllable(pClicked, 0);
PlayerInfo[pClicked] = 1;
}
else SCM(playerid,COLOR_RED, "Ne mozes freezati igraca koji je AFK !");
}
if(listitem == 1) // UNFREEZE
{
if(IsAfk[pClicked] == 0)
{
new string;
new aAdmin[MAX_PLAYER_NAME+1];
GetPlayerName(playerid,aAdmin,sizeof aAdmin);
format(string,sizeof string,"Unfreezani ste od strane admina %s !",aAdmin);
SCM(pClicked,COLOR_RED,string);
TogglePlayerControllable(pClicked, 1);
PlayerInfo[pClicked] = 0;
KillTimer(Unfreezetime[pClicked]);
}
else SCM(playerid,COLOR_RED, "Ne mozes unfreezati igraca koji je AFK !");
}
if(listitem == 2) // EXPLODE
{
new Float:xpos,Float:ypos,Float:zpos;
new string;
new aAdmin[MAX_PLAYER_NAME+1];
GetPlayerName(playerid,aAdmin,sizeof aAdmin);
format(string,sizeof string,"Admin %s je bacio bombu na vas !",aAdmin);
SCM(pClicked,COLOR_RED,string);
GetPlayerPos(pClicked,xpos ,ypos ,zpos);
CreateExplosion(xpos ,ypos ,zpos ,6 ,35);
}
if(listitem == 3) // SLAP
{
new Float:xpos,Float:ypos,Float:zpos;
new string;
new aAdmin[MAX_PLAYER_NAME+1];
GetPlayerPos(pClicked,xpos ,ypos ,zpos);
GetPlayerName(playerid,aAdmin,sizeof aAdmin);
format(string,sizeof string,"Dobili ste samar od strane admina %s !",aAdmin);
SCM(pClicked,COLOR_RED,string);
SetPlayerPos(pClicked, xpos ,ypos ,zpos+10);
}
if(listitem == 4) // GETHERE
{
new Float:xpos ,Float:ypos ,Float:zpos;
new string;
new aAdmin[MAX_PLAYER_NAME+1];
GetPlayerPos(playerid,xpos ,ypos ,zpos);
GetPlayerName(playerid,aAdmin,sizeof aAdmin);
format(string,sizeof string,"Admin %s te teleportirao do sebe !",aAdmin);
SCM(pClicked,COLOR_RED,string);
SetPlayerPos(pClicked,xpos ,ypos+0.3 ,zpos);
SetCameraBehindPlayer(pClicked);
}
if(listitem == 5) // GOTO
{
new Float:xpos ,Float:ypos ,Float:zpos;
new string;
new aAdmin[MAX_PLAYER_NAME+1];
GetPlayerPos(pClicked,xpos ,ypos ,zpos);
GetPlayerName(playerid,aAdmin,sizeof aAdmin);
format(string,sizeof string,"Admin %s se teleportirao do tebe !",aAdmin);
SCM(pClicked,COLOR_RED,string);
SetPlayerPos(playerid,xpos ,ypos+0.3 ,zpos);
SetCameraBehindPlayer(playerid);
}
if(listitem == 6) // MUTE
{
new string;
new aAdmin[MAX_PLAYER_NAME+1];
GetPlayerName(playerid,aAdmin,sizeof aAdmin);
if(pMute[pClicked] == 0)
{
format(string,sizeof string,"Admin %s ti je oNEmogucio chat!",aAdmin);
SendClientMessage(pClicked, COLOR_RED, string);
pMute[pClicked] = 1;
mutedraw = Create3DTextLabel( ".: UTISAN :.", COLOR_RED, 0.0, 0.0, 0.0, 50.0, 0, 0);
Attach3DTextLabelToPlayer( mutedraw, pClicked, 0.0, 0.0, 0.4);
SetPVarInt(playerid, "MUTEProvera", 1);
}
}
if(listitem == 7) // UNMUTE
{
new string;
new aAdmin[MAX_PLAYER_NAME+1];
GetPlayerName(playerid,aAdmin,sizeof aAdmin);
if(pMute[pClicked] == 1)
{
format(string,sizeof string,"Admin %s ti je omogucio chat!",aAdmin);
SendClientMessage(pClicked,COLOR_RED,string);
pMute[pClicked] = 0;
Delete3DTextLabel(mutedraw);
SetPVarInt(playerid, "MUTEProvera", 0);
}
}
return true;
}
}
return 1;