--------------->Help<----------------
#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


Messages In This Thread
--------------->Help<---------------- - by stud4125 - 26.07.2009, 22:40
Re: --------------->Help<---------------- - by -eXo - 26.07.2009, 22:42
Re: --------------->Help<---------------- - by Vetle - 26.07.2009, 23:17
Re: --------------->Help<---------------- - by stud4125 - 26.07.2009, 23:36
Re: --------------->Help<---------------- - by BP13 - 27.07.2009, 01:08
Re: --------------->Help<---------------- - by stud4125 - 27.07.2009, 01:41
Re: --------------->Help<---------------- - by BP13 - 27.07.2009, 02:15
Re: --------------->Help<---------------- - by stud4125 - 27.07.2009, 02:20
Re: --------------->Help<---------------- - by stud4125 - 27.07.2009, 02:34
Re: --------------->Help<---------------- - by BP13 - 27.07.2009, 02:37

Forum Jump:


Users browsing this thread: 4 Guest(s)