View Single Post
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 04-06-2020 , 15:12   Re: [Request] VIP Privilages
Reply With Quote #16

Quote:
Originally Posted by OciXCrom View Post
Copying a small part of the error doesn't help. Show the full thing.
https://i.ibb.co/ZSnVbKd/1.png

I Got this [1 warrning] Becasue i change code {} /// Because when i added gravity code it's didn't added for vips only , it added for all players so i edit {} , For make it for vips only and it's worked But I dont know why i got 1 warrning

From:
PHP Code:
public Privilage(id)
{
    if(
get_user_flags(id) & VIP-ACC && cs_get_user_team(id) == CS_TEAM_CT
    {
        
ColorChat(idGREEN"^1[ ^4GameOver ^1] ^3You got^1 150HP ^3-^1 150Armor ^3-^1 Gravity ^3-^1 Speed ^3-^1 Full nade Pack"
    }
    
set_user_health(idget_pcvar_num(VIPhealth))
    
set_user_gravity(idget_user_gravity(id) - 0.5)
    
set_user_armor(idget_pcvar_num(VIParmor))
    
give_item(id"weapon_hegrenade")
    
give_item(id"weapon_flashbang")
    
give_item(id"weapon_flashbang")
    
give_item(id"weapon_smokegrenade")
   

To
PHP Code:
public Privilage(id)
{
    if(
get_user_flags(id) & VIP-ACC && cs_get_user_team(id) == CS_TEAM_CT
    {
        
ColorChat(idGREEN"^1[ ^4GameOver ^1] ^3You got^1 150HP ^3-^1 150Armor ^3-^1 Gravity ^3-^1 Speed ^3-^1 Full nade Pack"
    
    
set_user_health(idget_pcvar_num(VIPhealth))
    
set_user_gravity(idget_user_gravity(id) - 0.5)
    
set_user_armor(idget_pcvar_num(VIParmor))
    
give_item(id"weapon_hegrenade")
    
give_item(id"weapon_flashbang")
    
give_item(id"weapon_flashbang")
    
give_item(id"weapon_smokegrenade")
   }

Quote:
Is your sv_maxspeed cvar set to 320 by any chance?
Yes and now i changed it to 400 to see if this is the problem or not but i got same speed

https://i.ibb.co/QcN5rHL/4.png

https://i.ibb.co/sQzsFjD/2.png

Last edited by Supremache; 04-06-2020 at 15:14.
Supremache is offline