Usage of variable
#8

Quote:
Originally Posted by CodeStyle175
View Post
Your anticheat doesnt even work.
PHP Code:
#define max_players 50
#define scm            SendClientMessage
new UWeapon[max_players][13];
GetWeaponSlot(weaponid){ 
    switch(
weaponid){ 
        case 
1: return 0
        case 
2..9: return 1
        case 
22..24: return 2
        case 
25..27: return 3
        case 
282932: return 4
        case 
3031: return 5
        case 
3334: return 6
        case 
35..38: return 7
        case 
16..1839: return 8
        case 
41..43: return 9
        case 
10..15: return 10
        case 
44..46: return 11
        case 
40: return 12
    } 
    return 
0
}  
func Update3sec(){
    new 
wid,wam;
    foreach(
Player,i){
        for(new 
i2i2 13i2++){
            
GetPlayerWeaponData(i,i2,wid,wam);
            if(
wid && UWeapon[i][GetWeaponSlot(wid)]!=wid){
                
scm(i,-1,"STOP CHEATING WEAPONS!");
            }
        }
    }
    return 
1;

it definitely works if you get weapons out of script your USER[playerid][GUNx] es will be 0 and it will check if the numbers matches. i already tried and got myself banned. thank you for your attention tho. thanks all of you.

you guys think so big about this code, its working or not thats not even what i asked. I only asked how can i change the string asd there and im not trying to make an anticheat that will be applied to many servers. my code will only will only be capable to work with my variables which is working right now.

Also if you wanna see it working(just because you said no it doesnt work) i will show it on my code block on teamviewer and i get you an account on my server so you can check for yourself.
Reply


Messages In This Thread
Usage of variable - by grymtn - 25.09.2017, 22:04
Re: Usage of variable - by kAn3 - 25.09.2017, 22:16
Re: Usage of variable - by grymtn - 25.09.2017, 22:22
Re: Usage of variable - by Misiur - 25.09.2017, 22:26
Re: Usage of variable - by grymtn - 25.09.2017, 22:31
Re: Usage of variable - by CodeStyle175 - 25.09.2017, 22:33
Re: Usage of variable - by kAn3 - 25.09.2017, 22:38
Re: Usage of variable - by grymtn - 26.09.2017, 00:46

Forum Jump:


Users browsing this thread: 2 Guest(s)