Author Topic: different functions in pickups....  (Read 2951 times)

0 Members and 1 Guest are viewing this topic.

Offline [SUK]vivamexico

  • Street Thug
  • *
  • Posts: 16
  • Nice
    • View Profile
different functions in pickups....
« 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;
}

Offline [SUK]vivamexico

  • Street Thug
  • *
  • Posts: 16
  • Nice
    • View Profile
Re: different functions in pickups....
« Reply #1 on: April 07, 2011, 02:36:39 am »
hey I want to help not answer me xD! ._.  :P

Offline tato

  • Made Man
  • ***
  • Posts: 106
  • I bet u don't know me!
    • View Profile
    • EA Server
Re: different functions in pickups....
« Reply #2 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 ...

yazeen

  • Guest
Re: different functions in pickups....
« Reply #3 on: April 08, 2011, 08:06:17 am »
ROFL this Simple Dosent Work  ;D

Offline BIG[H]

  • Made Man
  • ***
  • Posts: 159
  • Sight of light
    • View Profile
Re: different functions in pickups....
« Reply #4 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);
}
« Last Edit: April 09, 2011, 08:13:12 am by StriKe »
Outdoor city server Administrator, FS server owner!