I have a pickup
#5

Quote:
Originally Posted by Pyrokid
You must define the pickup.
pawn Код:
//On top of the script
new pickup1, pickup2;

//OnGameModeInit
pickup1 = CreatePickup(1239, 2, 2610.981750, -583.144531, 17.626646);//Icon Floor
pickup2 = CreatePickup(1239, 2, 619.161438, -566.806091, 25.512650);//Icon Roof

//Then check it in OnPlayerPickUpPickup
  if(pickupid == pickup1) { // G Down
    SendClientMessage(playerid, 0xA9A9A9AA, "|_Police HQ - B 1_|");
    SetPlayerPos(playerid, 610.9496,-583.5366,18.2033); // Spawn Level
    SetCameraBehindPlayer(playerid);
  }
  else
    if(pickupid == pickup2) { // B 2 Up
    SendClientMessage(playerid, 0xA9A9A9AA, "|_Police HQ - B 1_|");
    SetPlayerPos(playerid, 618.5887,-566.7526,26.1432); // Spawn Level
    SetCameraBehindPlayer(playerid);
  }
  return 1;
}
Ok thanks, it works but only one of the pickups work


Код:
  if(pickupid == pickup1) { // G Down
    SendClientMessage(playerid, 0xA9A9A9AA, "|_Police HQ - B 1_|");
    SetPlayerPos(playerid, 610.9496,-583.5366,18.2033); // Spawn Level
    SetCameraBehindPlayer(playerid);
  }
this one doesent work, the other one does ;P

The object i, shows up but its solid when you walk into it you dont get teleported
Reply


Messages In This Thread
I have a pickup - by aspire5630 - 28.04.2009, 21:32
Re: I have a pickup - by afei - 28.04.2009, 21:54
Re: I have a pickup - by aspire5630 - 28.04.2009, 22:27
Re: I have a pickup - by Pyrokid - 29.04.2009, 01:45
Re: I have a pickup - by aspire5630 - 29.04.2009, 16:02
Re: FIXED - by aspire5630 - 29.04.2009, 16:38

Forum Jump:


Users browsing this thread: 1 Guest(s)