Raised This Month: $ Target: $400
 0% 

AMX_RADIO4 troublefix


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
access
Junior Member
Join Date: Mar 2007
Location: Рос
Old 04-03-2007 , 10:03   AMX_RADIO4 troublefix
Reply With Quote #1

Sorry for my bad english please

Plugin amx_radio4

Code:
/* AMX Mod script. 
* 
* © Copyright 2002, EJ
* This file is provided as is (no warranties). 
* 
*/ 
I fix some bugs in this plugin.

amx_radio4.sma

Игрок не может видеть меню радио и не может отправлять радио-команды, если он мертв (как было ранее).
Теперь игрок может пользоваться этим радио только тогда, когда он жив

PHP Code:
if(is_user_alive(id))

show_menu(id,1023,menu_body// Show the above menu on screen 

and

PHP Code:
public radio4cmd(idkey) { 
 
new 
players[32],totalteam_name[10
get_user_team(id,team_name9
get_players(playerstotal ,"ce"team_name// No bots and Match team name
new name[32]
get_user_name(id,name,31)
 
for(new 
a=0total; ++a)

 
{
client_cmd(players[a], radio4_spk[key]) // Play sound 
client_print(players[a],print_chat,"%s (RADIO): %s",name,radio4_say[key]) // Print radio message on screen 
 
}
}
return 
PLUGIN_HANDLED

added functions: if(is_user_alive(id))

Last edited by access; 04-03-2007 at 10:06.
access 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 22:00.


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