--------------->Help<----------------
#1

ok you know how the pd has the yellow pickup thing well how do i place those to get into a house
that i made with object creator?
Reply
#2

Addstaticpickup?
Reply
#3

u cant

there is a modelid that looks like the yellow marker, but it is much smaller
Reply
#4

Quote:
Originally Posted by Vetle
u cant

there is a modelid that looks like the yellow marker, but it is much smaller
ok so if i want a marker to say something like the green house icon to say "House For Sale 1.2 Mil"
what do i do to make that happen?
Reply
#5

Код:
new pickup;


OnGameModeInit();
{
	pickup = CreatePickup(1239, 23, -2909.0461,-76.0032,3.3680);
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
  if (pickupid == pickup)
  {
		GameTextForPlayer(playerid,"House For Sale 1.2 Mil",5000,3);
  }
  return 1;
}
something like that
Reply
#6

Quote:
Originally Posted by [SU
BP13 ]
Код:
new pickup;


OnGameModeInit();
{
	pickup = CreatePickup(1239, 23, -2909.0461,-76.0032,3.3680);
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
  if (pickupid == pickup)
  {
		GameTextForPlayer(playerid,"House For Sale 1.2 Mil",5000,3);
  }
  return 1;
}
something like that
ok but wut do i do if i have multiple pickups?
Reply
#7

here is a example i'm currently using it in my script.

Код:
new Info[4];

OnGameModeInit();
{
	Info[0] = CreatePickup(1239, 23, -2909.0461,-76.0032,3.3680);
	Info[1] = CreatePickup(1239, 23, -471.6951,2198.6221,46.4031);
	Info[2] = CreatePickup(1239, 23, -473.3904,2208.1060,47.1292);
	Info[3] = CreatePickup(1239, 23, -482.6900,2218.7649,48.8604);
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
  if (pickupid == Info[0])
  {
		GameTextForPlayer(playerid,"~g~Info:~n~~w~Only administrators may enter the admincastle.~n~~r~Trying to enter as a non-admin is at your own risk.",7000,3);
		PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
  }
  if (pickupid == Info[1])
  {
		GameTextForPlayer(playerid,"~g~Info:~n~~w~To get started type /teles",5000,3);
		PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
  }
  if (pickupid == Info[2])
  {
		GameTextForPlayer(playerid,"~g~Info:~n~~w~Use /Home to teleport back to this place.",5000,3);
		PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
  }
  if (pickupid == Info[3])
  {
		GameTextForPlayer(playerid,"~g~Info:~n~~w~If you deathmatch here you will be kicked/banned!",5000,3);
		PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
  }
	return 1;
}
Reply
#8

Quote:
Originally Posted by [SU
BP13 ]
here is a example i'm currently using it in my script.

Код:
new Info[4];

OnGameModeInit();
{
	Info[0] = CreatePickup(1239, 23, -2909.0461,-76.0032,3.3680);
	Info[1] = CreatePickup(1239, 23, -471.6951,2198.6221,46.4031);
	Info[2] = CreatePickup(1239, 23, -473.3904,2208.1060,47.1292);
	Info[3] = CreatePickup(1239, 23, -482.6900,2218.7649,48.8604);
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
  if (pickupid == Info[0])
  {
		GameTextForPlayer(playerid,"~g~Info:~n~~w~Only administrators may enter the admincastle.~n~~r~Trying to enter as a non-admin is at your own risk.",7000,3);
		PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
  }
  if (pickupid == Info[1])
  {
		GameTextForPlayer(playerid,"~g~Info:~n~~w~To get started type /teles",5000,3);
		PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
  }
  if (pickupid == Info[2])
  {
		GameTextForPlayer(playerid,"~g~Info:~n~~w~Use /Home to teleport back to this place.",5000,3);
		PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
  }
  if (pickupid == Info[3])
  {
		GameTextForPlayer(playerid,"~g~Info:~n~~w~If you deathmatch here you will be kicked/banned!",5000,3);
		PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
  }
	return 1;
}
i think i get it...
Reply
#9

i got errors i will post them
Код:
 C:\Documents and Settings\TRM\Desktop\samp02Xserver.win32\gamemodes\BritanniaRP.pwn(126) : error 017: undefined symbol "Info"
C:\Documents and Settings\TRM\Desktop\samp02Xserver.win32\gamemodes\BritanniaRP.pwn(126) : warning 215: expression has no effect
C:\Documents and Settings\TRM\Desktop\samp02Xserver.win32\gamemodes\BritanniaRP.pwn(126) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\TRM\Desktop\samp02Xserver.win32\gamemodes\BritanniaRP.pwn(126) : error 029: invalid expression, assumed zero
C:\Documents and Settings\TRM\Desktop\samp02Xserver.win32\gamemodes\BritanniaRP.pwn(126) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
4 Errors.

Here is the line

	Info[0] = CreatePickup(1273,1,1081.0938,-345.3902,73.9832); // UF Hideout House
	Info[1] = CreatePickup(1272,1,1847.6652,-1871.6461,13.5781); // Store 1
	Info[2] = CreatePickup(1272,1,2139.7717,-1191.8656,23.9922); // Store 2
	Info[3] = CreatePickup(1272,1,2139.6292,-1184.9888,23.9922); // Store 3
	Info[4] = CreatePickup(1273,1,2459.2615,-1691.6536,13.5487); // TBK Hidout House
	Info[5] = CreatePickup(123,1,2729.3557,-2451.2358,17.5937); // SoS Hidout House
	Info[6] = CreatePickup(1239,1,1568.8904,-1689.9894,6.2188); // PD Icon
Reply
#10

you forgot this on the top of your script

new Info[7];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)