Raised This Month: $ Target: $400
 0% 

[Tutorial][CSS] Radar spot edit!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 11-16-2010 , 18:13   Re: [Tutorial][CSS] Radar spot edit!
Reply With Quote #11

Quote:
Originally Posted by javalia View Post
i think u should do that on every respawn of user.
from it will maybe resetted on respawn.
Ok, I've tested it out on my test server, you need to delay it a little bit,
because the radar seems to get reset after spawning, here is working code to hide the radar with the hidehud property:

PHP Code:
public OnPluginStart() {
    
HookEvent("player_spawn"Event_PlayerSpawn);
}

public 
Action:Event_PlayerSpawn(Handle:event,const String:name[],bool:dontBroadcast) {
    
    new 
client GetClientOfUserId(GetEventInt(event"userid"));
    
CreateTimer(0.1PlayerSpawn_Delayedclient);
    
    return 
Plugin_Continue;
}

public 
Action:PlayerSpawn_Delayed(Handle:timerany:client) {
    
    
Client_SetHud(client1<<4);
    
    return 
Plugin_Stop;

Credit me, when you use this ;)
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni 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 18:19.


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