Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: jimmy on February 12, 2012, 04:55:22 pm

Title: Need Cmds
Post by: jimmy on February 12, 2012, 04:55:22 pm
hy guys i need /c getcar because Gups Getcar is bugged when i getcar the car it come when i sit on it and then getcar car again it not come plzzz give me
Title: Re: Need Cmds
Post by: RasikhQadeer on February 13, 2012, 12:42:43 pm
Jimmy i dont have a solution for that a point to ponder is that it gets the car again and again till you dont sit in it soo i think you should creat a new function :

[pawn]public OnExitVehicle
{
   RespawnVehicle(GetPlayerVehiceID(playerid);
}[/pawn]

Not Tested Just Giving An Example!
Title: Re: Need Cmds
Post by: heekz.shadow on February 13, 2012, 10:15:20 pm
Don't listen to Rasikh

[pawn]public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
          RespawnVehicle(vehicleid);
return 1;
}[/pawn]
Title: Re: Need Cmds
Post by: jimmy on February 13, 2012, 10:21:04 pm
Shadow thanks for reply but when i use /c respawn bla bla and getcar again it will not come can u made a right cmd for getcar and mute plzzz
Title: Re: Need Cmds
Post by: heekz.shadow on February 13, 2012, 10:28:49 pm
Uuh... Seems like PAWN doesn't support getting a car to you after you have been into it.. So it's a lost cause.
Title: Re: Need Cmds
Post by: jimmy on February 13, 2012, 10:33:35 pm
ok Thanks
Title: Re: Need Cmds
Post by: SaFeeR on March 15, 2012, 10:30:38 am
Uuh... Seems like PAWN doesn't support getting a car to you after you have been into it.. So it's a lost cause.
Code: [Select]
public OnPlayerExitVehicle(playerid, vehicleid)
{
    RemovePlayerFromVehicle(playerid);
SetVehicleToRespawn(vehicleid);
return 1;
}
use this :)