Stock Function - Simple - Yes Or No Answer
#5

Wow thanks for the detailed reply and yeah i kind of fucked up the switch(vehicleid), I'm using the following code:
pawn Код:
stock IsACopCar(vehicleid)
{
    switch(vehicleid)
    {
        case 523, 427, 490, 528, 596, 598, 597, 599, 601, 432, 433: return 1;
    }
    return 1;
}
stock IsAPublicCar(vehicleid)
{
    switch(vehicleid)
    {
        case 416, 407, 544: return 1;
    }
    return 1;
}
Then just defining it under OnPlayerEnterVehicle as an 'if' statement so if the player is team civil sets that players wanted to 4 or 3 depending on cop or public. Infact i feel quite stupid really considering i used an IsAPlane function on my anti-cheat proberly just lack of sleep, thanks again for all your help.

Best regards,

-Michael.
Reply


Messages In This Thread
Stock Function - Simple - Yes Or No Answer - by xMichaelx - 08.12.2011, 02:26
Re: Stock Function - Simple - Yes Or No Answer - by Emmet_ - 08.12.2011, 02:40
Re: Stock Function - Simple - Yes Or No Answer - by xMichaelx - 08.12.2011, 02:49
Re: Stock Function - Simple - Yes Or No Answer - by Emmet_ - 08.12.2011, 03:03
Re: Stock Function - Simple - Yes Or No Answer - by xMichaelx - 08.12.2011, 03:11

Forum Jump:


Users browsing this thread: 3 Guest(s)