Onplayerclickplayer (admin+players) -
sMog. - 14.04.2011
Hello is this possible ?:
When Player (Not admin) clicks player on score list he gets Prvate message thing , that he can send messages to other that noone else see.
When Admin level 1 and 2 cliks player he get list:
PM (Private message)
GOTO (Go to player)
When Admin level 3 clicks on player he gets list:
PM //pm [id]
GOTO //goto [id]
GET //get [id]
KICK //lkick [id] [reason]
When Admin level 4 clicks on player he gets list:
PM //pm [id]
GOTO //goto [id]
GET //get [id]
KICK //lkick [id] [reason]
BAN //lban [id] [reason]
RANGEBAN //rban [id] [reason]
When Admin level 5 clicks on player he gets list:
PM //pm [id]
GOTO //goto [id]
GET //get [id]
KICK //lkick [id] [reason]
BAN //lban [id] [reason]
RANGEBAN //rban [id] [reason]
SETLEVEL //setlevel [id] [level]
SETTEMPLEVEL //settemplevel [id] [level]
Thanks, all for viewing 
If you think i am lazy im not i try to find/make/create every day something to my server and i am not good at scripting too.
So i am learing trying scripting and i must rest too
And i have life in outside vitual world too. So plz SAMP Forum help me and PIMP MY SERVER.
Re: Onplayerkickplayer (admin+players) -
Kwarde - 14.04.2011
There are already scripts for that. However it's quite easy.
On the OnPlayerKlickPlayer:
pawn Код:
if(IsPlayerAdmin(playerid) || var_you_use_for_admin[playerid] == 1)
{
ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_LIST, "Admin Panel", "Private Message\nGoto.", "OK", "Cancel");
}
else if(IsPlayerAdmin(playerid) || var_you_use_for_admin[playerid] == 2)
{
ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_LIST, "Admin Panel", "Private Message\nGoto.\nKick", "OK", "Cancel");
}
And then in OnDialogResponse you can do.. something :P
EDIT:
Try looking at this:
http://forum.sa-mp.com/showthread.ph...t=Admin+Dialog
Re: Onplayerkickplayer (admin+players) -
sMog. - 14.04.2011
thanks for help
Can someone make me example of on dialog response
i amde it like that
Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source){
ClickedPlayer[playerid] = clickedplayerid;
if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][Level] >= 1)
{
ShowPlayerDialog(playerid, DIALOGID4+1, DIALOG_STYLE_LIST, "Admin Panel", "Private Message\nGoto", "OK", "Cancel");
}
else if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][Level] >= 2)
{
ShowPlayerDialog(playerid, DIALOGID4+2, DIALOG_STYLE_LIST, "Admin Panel", "Private Message\nGoto", "OK", "Cancel");
}
else if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][Level] >= 3)
{
ShowPlayerDialog(playerid, DIALOGID4+3, DIALOG_STYLE_LIST, "Admin Panel", "Private Message\nGoto\nGet\nKick", "OK", "Cancel");
}
else if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][Level] >= 4)
{
ShowPlayerDialog(playerid, DIALOGID4+4, DIALOG_STYLE_LIST, "Admin Panel", "Private Message\nGoto\nGet\nKick\nBan\nRangeBan", "OK", "Cancel");
}
else if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][Level] >= 5)
{
ShowPlayerDialog(playerid, DIALOGID4+5, DIALOG_STYLE_LIST, "Admin Panel", "Private Message\nGoto\nGet\nKick\nBan\nRange Ban\nSetLevel\nSetTempLevel", "OK", "Cancel");
}
what i do next and how do i add there normal palyer thing ?
NO ONE CAN HELP ME ?!?! I REALLY NEED HELP
Re: Onplayerkickplayer (admin+players) -
aircombat - 26.04.2011
u can use this as example :
https://sampforum.blast.hk/showthread.php?tid=149959