Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: [SUK]vivamexico on April 06, 2011, 08:30:38 PM

Title: different functions in pickups....
Post by: [SUK]vivamexico on April 06, 2011, 08:30:38 PM
Hello to which I respond, but I need help getting good roles in the pickups that did not catch the function of the properties helps!,
an example:
public FixpickupVehicle (pickup, playerid)
{
if ((pickup == 171) | | (pickup == 172)) {
       SetVehicleHealth (GetPlayerVehicleID (playerid), 1000);
         SendClientMessage (playerid, COLOR_GREEN, "You car is fixed! ");
         }
         return 1;
}
Title: Re: different functions in pickups....
Post by: [SUK]vivamexico on April 07, 2011, 01:36:39 AM
hey I want to help not answer me xD! ._.  :P
Title: Re: different functions in pickups....
Post by: tato on April 08, 2011, 05:15:53 AM
XDXDXDXD el problema esta aca
Quotepublic FixpickupVehicle (pickup, playerid)
lo tienes k poner aca mira public OnPickedUp(pickupid, playerid)
pero muy buen intento
si necesitas mas ayuda me lo pides por el msn
PD: i was speaking in spanish so it's easier to him ok don't get mad ...
Title: Re: different functions in pickups....
Post by: yazeen on April 08, 2011, 07:06:17 AM
ROFL this Simple Dosent Work  ;D
Title: Re: different functions in pickups....
Post by: BIG[H] on April 08, 2011, 09:31:26 PM
Ahh i forgot pawn But here what i can Help!
Public OnPickedUp( playerid ,pickupid);
if(( pickupid = 2)  (pickupid = 3)) {
new x = GetPlayerVehicleID(playerid);
SetVehicleHealth(x,1000);
SetVehicleTyres(x,100);
}