Carsurf problem
#10

Quote:
Originally Posted by milanosie
Посмотреть сообщение
ow, lol readed wrong:

uhm,

pawn Код:
for(new h = 0; h < sizeof(MAX_VEHICLES); h++)
Do something witht that I think
Quote:
Originally Posted by Babul
Посмотреть сообщение
hey, heey!
you should pay attention to

so doing
pawn Код:
new VehID=GetPlayerSurfingVehicleID(playerid);
//and maybe
//SetVehicleHealth(VehID,250);//explodes the vehicle when you jump onto it (only with a driver, else its not synced)
will work

heres a snippet of my /info command:
pawn Код:
new PlayerSurfing=GetVehicleModel(GetPlayerSurfingVehicleID(Player));
            if (PlayerSurfing==0)
            {
                // On Foot
                format(string,sizeof(string),"%s - on foot",string);
            }
            else
            {
                // Surfing
                format(string,sizeof(string),"%s - Surfing %s",string,VehName[PlayerSurfing-400]);
            }
as you see, the case 0 at surfing, is an invalid vehicle model id. also the first created vehicle in a server starts at 1 - so you may use the trick with a vehicle id, or even its model id heheh
Oh DAMN xD
Now i know why the ID got so horribly weird. Thx i will try that out, if one of my tester is online, then ill try

Код:
GetVehicleModel(GetPlayerSurfingVehicleID(Player)
This was the code i needed if it will work now as expected
Reply


Messages In This Thread
Carsurf problem - by Blunt P - 05.02.2012, 11:00
Re: Carsurf problem - by Twisted_Insane - 05.02.2012, 11:18
Re: Carsurf problem - by Babul - 05.02.2012, 11:26
Re: Carsurf problem - by Twisted_Insane - 05.02.2012, 11:29
AW: Carsurf problem - by Blunt P - 05.02.2012, 12:17
Re: Carsurf problem - by milanosie - 05.02.2012, 12:35
AW: Carsurf problem - by Blunt P - 05.02.2012, 12:37
Re: Carsurf problem - by milanosie - 05.02.2012, 12:41
Re: Carsurf problem - by Babul - 05.02.2012, 12:45
AW: Carsurf problem - by Blunt P - 05.02.2012, 13:11

Forum Jump:


Users browsing this thread: 1 Guest(s)