SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 14/04/2011, 09:15 PM   #1
sMog.
Big Clucker
 
sMog.'s Avatar
 
Join Date: Feb 2011
Location: Finland, Ikaalinen
Posts: 129
Reputation: 0
Default Onplayerclickplayer (admin+players)

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.

Last edited by sMog.; 15/04/2011 at 02:12 PM.
sMog. is offline  
Old 14/04/2011, 09:18 PM   #2
Kwarde
High-roller
 
Kwarde's Avatar
 
Join Date: Nov 2009
Location: The Netherlands
Posts: 2,711
Reputation: 1671
Default Re: Onplayerkickplayer (admin+players)

There are already scripts for that. However it's quite easy.
On the OnPlayerKlickPlayer:

pawn Code:
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
__________________
When the opportunity presents itself to flip-a da table, uh, you flip-a da table.

Discord: Kwarde#1966
Kwarde is offline  
Old 14/04/2011, 09:21 PM   #3
sMog.
Big Clucker
 
sMog.'s Avatar
 
Join Date: Feb 2011
Location: Finland, Ikaalinen
Posts: 129
Reputation: 0
Default Re: Onplayerkickplayer (admin+players)

thanks for help

Can someone make me example of on dialog response

i amde it like that
Code:
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

Last edited by sMog.; 17/04/2011 at 04:36 PM.
sMog. is offline  
Old 26/04/2011, 09:52 PM   #4
aircombat
High-roller
 
Join Date: Feb 2010
Posts: 1,535
Reputation: 9
Default Re: Onplayerkickplayer (admin+players)

u can use this as example : http://forum.sa-mp.com/showthread.php?t=149959
__________________

aircombat is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Pedido] Ver os players no radar so pra admin KevinsL PortuguÍs/Portuguese 10 05/09/2010 03:13 AM
Players getting admin? jesuschristlordandsavior Help Archive 4 12/01/2010 06:17 AM


All times are GMT. The time now is 07:46 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.