Raised This Month: $ Target: $400
 0% 

[RU]


  
 
 
Thread Tools Display Modes
Author Message
access
Junior Member
Join Date: Mar 2007
Location: Рос
Old 03-30-2007 , 03:19   [RU]
#1

Плагин-анонсер на коннеты/дисконнекты игроков.
Я его немного переделал по себя, но есть один вопрос..
Реально ли сделать так:
если коннектится админ, сообщение в чат выдавалось бы следующим образом:

-->-> ADMIN *cell* is connecting >> %s (к примеру)
а простой пользователь -
-->-> *user* is connecting >> %s
?

PHP Code:
/* 
* Author: Ruffneck
* Plugin: Connect msg with sound.
*/

#include <amxmodx>
#include <amxmisc>

public client_connect(id) {
new 
s[32]
new 
usrip[33]
get_user_name(id,s,31)
get_user_ip(idusrip321)

//client_print(0,print_chat,"-->-> %s is connecting >> %s", s, usrip)

return PLUGIN_HANDLED
}

public 
plugin_init() {
register_plugin("Connect Sound","0.4","Rufneck")
return 
PLUGIN_CONTINUE

_____
забыл название темы указать, ну да ладно...
access is offline
Jоnny
Senior Member
Join Date: Jun 2007
Old 06-03-2007 , 10:53   Re: [RU]
#2

узнавай права доступа.

if (access(id, ADMIN_BAN))
{
client_print(0, print_chat,"ADMIN>-> %s is connecting >> %s", s, usrip)
} else
{
client_print(0,print_chat,"USER>-> %s is connecting >> %s", s, usrip)
}
Jоnny is offline
access
Junior Member
Join Date: Mar 2007
Location: Рос
Old 08-02-2007 , 00:24   Re: [RU]
#3

Спасибо!
access is offline
ZmifF
Senior Member
Join Date: Jul 2006
Location: Russia
Old 08-08-2007 , 20:26   Re: [RU]
#4

Quote:
Originally Posted by Jоnny View Post
узнавай права доступа.

if (access(id, ADMIN_BAN))

}
А лучше:
Code:
if (is_user_admin (id))
__________________
Не воспринимай жизнь всерьёз - нам всё равно из неё живыми не выбраться...
ZmifF is offline
Send a message via ICQ to ZmifF
 



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

Forum Jump


All times are GMT -4. The time now is 07:02.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode