• Welcome to Vice City Multiplayer.
 

Some useful script

Started by Robd, March 21, 2011, 10:50:10 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Robd

Quote from: Madara on March 28, 2011, 07:36:30 PM
Quote from: Robd on March 28, 2011, 03:10:22 AM
Quote from: tato on March 27, 2011, 08:33:37 AM
and what's wrong with the speedometer

wow i always forget stuff
add this to PlayerInfo

incar

and then

OnPlayerEnterVehicle

PlayerInfo[playerid][incar] = 1;
OnPlayerExitVehicle
PlayerInfo[playerid][incar] = 0;

Unnecessary function: "PlayerInfo [playerid] [incar] = 1;": "incar" because for that exist the function IsPlayerInAnyVehicle (playerid), and this function should be put in the "speedometer" next to "IsPlayerConnected (i)"
ISPlayerInAnyVehicle only works if it's a drive, this works of rpassengers too, pplus its easy for me to remember, lol
Hello, this is Robd from the past.
If you are seeing this I have either posted something stupid, forgotten something, started a stupid topic, or a combination of the three.

Please forgive us for this mistake.

Regards, management