Vice City Multiplayer

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

Title: different functions in pickups....
Post by: [SUK]vivamexico on April 06, 2011, 09: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, 02: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, 06:15:53 am
XDXDXDXD el problema esta aca
Quote
public FixpickupVehicle (pickup, playerid)
lo tienes k poner aca mira
Code: [Select]
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, 08:06:17 am
ROFL this Simple Dosent Work  ;D
Title: Re: different functions in pickups....
Post by: BIG[H] on April 08, 2011, 10:31:26 pm
Ahh i forgot pawn But here what i can Help!
Code: [Select]
Public OnPickedUp( playerid ,pickupid);
if(( pickupid = 2)  (pickupid = 3)) {
new x = GetPlayerVehicleID(playerid);
SetVehicleHealth(x,1000);
SetVehicleTyres(x,100);
}