Raised This Month: $ Target: $400
 0% 

My script doesnt work


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
josepi
New Member
Join Date: Jul 2006
Old 07-28-2008 , 20:16   My script doesnt work
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>

new Float:g_Speed

public plugin_init() 
{
register_plugin("Speed Configurator","1.0","HeAd")
register_event("ResetHUD""Event""be")
g_Speed register_cvar("amx_playerspeed","-1.0")
return 
PLUGIN_CONTINUE 
}

public 
Event(id)
{  
if(
g_Speed <= 0){
g_Speed = -1.0
}
set_task(3.0"Speed"id)
return 
PLUGIN_CONTINUE
}


public 
Speed(id){
new 
Float:speed g_Speed 
set_user_maxspeed(id speed); 
client_print(id,print_chat,"[SERVER] La velocidad del jugador es de %d",speed)
return 
PLUGIN_HANDLED


I want is to change player speed , and every round player speed should be changed with the speed saved on cvar.
josepi is offline
 



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


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