Raised This Month: $ Target: $400
 0% 

Auto command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RuleBreaker
Senior Member
Join Date: May 2011
Old 06-23-2011 , 13:41   Auto command
Reply With Quote #1

How to make plugin that`ll do some command on player when he conects (if he doesn`t have e.g. "a" flag).
For example I want to turn on noclip on every player that connect execpt admins with flag "a". But I don`t want to use "set_user_noclip" i want to use amx_noclip

Better example: If i use command amx_kick it`ll kick all players without flag "a"
RuleBreaker is offline
Blue Snake.
Member
Join Date: May 2011
Location: Romania
Old 06-23-2011 , 13:49   Re: Auto command
Reply With Quote #2

You should try this (Not tested)

PHP Code:
public client_putinserver(id)
{
set_task(5.0,"usenoclip",id)
}

public 
usenoclip(id)
{
new 
name[32]
get_user_name(id,name,31)
if(!
access(idADMIN_IMMUNITY))
server_cmd("amx_noclip %s",name)


Last edited by Blue Snake.; 06-23-2011 at 13:52.
Blue Snake. is offline
Reply



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 23:31.


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