05.06.2009, 23:59
Hey, im just wondering how do i add walkthrough icons like Armor And Health so when u walk in them you get either Armor Or Health?
Originally Posted by Backwardsman97
AddStaticPickup or CreatePickup.
|
Originally Posted by Phame
Quote:
|
// Armor Under Tower new pickup; pickup = CreatePickup ( 1242, 2, 1881.5703, 1635.9821, 10.6411 ); // Health Over Beside Tower new pickup; pickup = CreatePickup ( 1240, 2, 2208.0178, 1285.5035, 10.8203 ); // Health Behind Hideout new pickup pickup = CreatePickup ( 1240, 2, 1881.8005, 1628.8505, 10.6310 ); // Armor Behind Hideout new pickup pickup = CreatePickup ( 1242, 2, 1881.5703, 1635.9821, 10.6411 );
public OnGameModeInit()
{
// Armor Under Tower
CreatePickup ( 1242, 2, 1881.5703, 1635.9821, 10.6411 );
// Health Over Beside Tower
CreatePickup ( 1240, 2, 2208.0178, 1285.5035, 10.8203 );
// Health Behind Hideout
CreatePickup ( 1240, 2, 1881.8005, 1628.8505, 10.6310 );
// Armor Behind Hideout
CreatePickup ( 1242, 2, 1881.5703, 1635.9821, 10.6411 );
return 1;
}
Originally Posted by Backwardsman97
Well for one thing, you don't need to store the pickup id although that's the wrong way to do it. You would have to create different global variables each with a specific name. But you should put that under OnGameModeInit. Like this.
pawn Код:
|
public OnGameModeInit()
{
// Armor Under Tower
CreatePickup ( 1242, 2, 1881.5703, 1635.9821, 10.6411 );
// Health Over Beside Tower
CreatePickup ( 1240, 2, 2208.0178, 1285.5035, 10.8203 );
// Health Behind Hideout
CreatePickup ( 1240, 2, 1881.8005, 1628.8505, 10.6310 );
// Armor Behind Hideout
CreatePickup ( 1242, 2, 1881.5703, 1635.9821, 10.6411 );
return 1;
SetGameModeText("NZ Fun Server");
AddObjects();
ShowPlayerMarkers(1);
ShowNameTags(1);
C:\Documents and Settings\Oscar\Desktop\Server\gamemodes\ithinkitworks.pwn(378) : warning 225: unreachable code Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.
public OnGameModeInit()
{
// Armor Under Tower
CreatePickup ( 1242, 2, 1881.5703, 1635.9821, 10.6411 );
// Health Over Beside Tower
CreatePickup ( 1240, 2, 2208.0178, 1285.5035, 10.8203 );
// Health Behind Hideout
CreatePickup ( 1240, 2, 1881.8005, 1628.8505, 10.6310 );
// Armor Behind Hideout
CreatePickup ( 1242, 2, 1881.5703, 1635.9821, 10.6411 );
SetGameModeText("NZ Fun Server");
AddObjects();
ShowPlayerMarkers(1);
ShowNameTags(1);
return 1;