My Elevators
#1

hi giuys

well i created a series of elevators for my GM called Elevator Land. But when i goto the elevators i am team 0 but still when i enter the pickup elevator i get put to the top but then it says Stay within the World Boundries and i get put miles and miles and miles away from Sa.

please help
Код:
ublic OnGameModeInit()
{
SetGameModeText("Elevator World");
Griffins = CreatePickup(1318,23,2621.3857,2831.6211,10.8203); // this is the griffins 1st elevator at the ground
Griffins2 = CreatePickup(1318,23,2633.4036,2829.8538,122.9219); // this is the griffins 2nd elevaor which is in the chimney
Griffins3 = CreatePickup(1318,23,2632.4592,2832.2922,127.5781); // this is the griffins 3rd elevator which is at the ground
Griffins4 = CreatePickup(1318,23,2653.6824,2843.9744,10.8203); // this is the griffins 4th elevator which is in the 2nd chimney

AddPlayerClass(254,1371.4879,-1652.2054,13.3828,29,29,29,29,29,29); // elevator land pos
AddPlayerClass(247,2648.1504,2773.2324,19.3222,29,29,29,29,29,29);
AddPlayerClass(254,-2334.792480,4063.763875,10.769835,29,29,29,29,29,29);

CreateVehicle(425,1431.2719,-1637.5399,13.3828,34.6530,52,52);
CreateObject(8417, -2334.792480,4063.763875, 10.769835,0.0000, 0.0000,  0.0000);

	return 1;
}


public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 232633.4036,2829.8538,122.9219);
	SetPlayerCameraPos(playerid, 232633.4036,2829.8538,122.9219);
	SetPlayerCameraLookAt(playerid, 232633.4036,2829.8538,122.9219);
	return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
  if (pickupid == Griffins)
  if(gTeam[playerid] == 0)

        SetPlayerPos(playerid,232633.4036,2829.8538,122.9219);


{
	if (pickupid == Griffins2)
	if(gTeam[playerid] == 0)

	SetPlayerPos(playerid,2633.4036,2829.8538,122.9219);
{
  if (pickupid == Griffins3)
  if(gTeam[playerid] == 0)

  SetPlayerPos(playerid,2653.6824,2843.9744,10.8203);
{
  if (pickupid == Griffins4)
  if(gTeam[playerid] == 0)
  
  SetPlayerPos(playerid,2632.4592,2832.2922,127.5781);
  
{
return 1;
}
}
}
}
}
Reply
#2

EDIT 2: Could you show us the whole Filter Script?
Reply
#3

Quote:
Originally Posted by cοοp
That's because you're dedicating all locations to team 0.
yes because i want it for a team use only and only that team can use it!
Reply
#4

Could you show us the Full version of your Filter Script (you don't have to include the objects)?
Reply
#5

Quote:
Originally Posted by cοοp
Could you show us the Full version of your Filter Script (you don't have to include the objects)?
lol this is my GM i have just started

but here u go

Код:
#include <a_samp>

// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#if defined FILTERSCRIPT
#define COLOR_GRAD1 0xF3F3F3FF
#define COLOR_GRAD2 0xE2E2E2FF
#define COLOR_GRAD3 0xD2D2D2FF
#define COLOR_BLUE 0x0000CC
#define COLOR_COPLEE 0x920E59FF
#define COLOR_GRAD4 0xC8C8C8FF
#define COLOR_GRAD5 0xEBFFD6FF
#define COLOR_GRAD6 0xE8FFFFFF
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x00FF00FF
#define COLOR_LEE 0x820041FF
#define COLOR_RED 0xAA3333AA
#define COLOR_LIGHTRED 0xFF6347AA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_LIGHTGREEN 0xE6FFEDFF
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_YELLOW2 0xE8D600FF
#define COLOR_WHITE 0xFFFFFFFF
#define COLOR_FADE1 0xE6E6E6E6
#define COLOR_FADE2 0xC8C8C8C8
#define COLOR_FADE3 0xAAAAAAAA
#define COLOR_FADE4 0x8C8C8C8C
#define COLOR_FADE5 0x6E6E6E6E
#define COLOR_PURPLE 0xC2A2DAAA
#define COLOR_DBLUE 0x2641FEAA
#define COLOR_ALLDEPT 0xFF8282AA
#define COLOR_NEWS 0xFFA500AA
#define COLOR_OOC 0x797900FF

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Blank Filterscript by your name here");
	print("--------------------------------------\n");
	}
 
	}
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

new Griffins;

new Griffins2;

new Griffins3;

new Griffins4;

static gTeam[MAX_PLAYERS];


main()
{
}

#endif

public OnGameModeInit()
{
SetGameModeText("Elevator World");
Griffins = CreatePickup(1318,23,2621.3857,2831.6211,10.8203); // this is the griffins 1st elevator at the ground
Griffins2 = CreatePickup(1318,23,2633.4036,2829.8538,122.9219); // this is the griffins 2nd elevaor which is in the chimney
Griffins3 = CreatePickup(1318,23,2632.4592,2832.2922,127.5781); // this is the griffins 3rd elevator which is at the ground
Griffins4 = CreatePickup(1318,23,2653.6824,2843.9744,10.8203); // this is the griffins 4th elevator which is in the 2nd chimney

AddPlayerClass(254,1371.4879,-1652.2054,13.3828,29,29,29,29,29,29); // elevator land pos
AddPlayerClass(247,2648.1504,2773.2324,19.3222,29,29,29,29,29,29);
AddPlayerClass(254,-2334.792480,4063.763875,10.769835,29,29,29,29,29,29);

CreateVehicle(425,1431.2719,-1637.5399,13.3828,34.6530,52,52);
CreateObject(8417, -2334.792480,4063.763875, 10.769835,0.0000, 0.0000,  0.0000);

	return 1;
}


public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 232633.4036,2829.8538,122.9219);
	SetPlayerCameraPos(playerid, 232633.4036,2829.8538,122.9219);
	SetPlayerCameraLookAt(playerid, 232633.4036,2829.8538,122.9219);
	return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
  if (pickupid == Griffins)
  if(gTeam[playerid] == 0)

        SetPlayerPos(playerid,232633.4036,2829.8538,122.9219);


{
	if (pickupid == Griffins2)
	if(gTeam[playerid] == 0)

	SetPlayerPos(playerid,2633.4036,2829.8538,122.9219);
{
  if (pickupid == Griffins3)
  if(gTeam[playerid] == 0)

  SetPlayerPos(playerid,2653.6824,2843.9744,10.8203);
{
  if (pickupid == Griffins4)
  if(gTeam[playerid] == 0)
  
  SetPlayerPos(playerid,2632.4592,2832.2922,127.5781);
  
{
return 1;
}
}
}
}
}
Reply
#6

pawn Код:
if (pickupid == Griffins)
if(gTeam[playerid] == 0)
{
SetPlayerPos(playerid,232633.4036,2829.8538,122.9219);
return 1;
}
else return SendClientMessage(playerid,COLOR_RED,"You must be in Team 0.");
}
That should do it.
Reply
#7

Quote:
Originally Posted by cοοp
pawn Код:
if (pickupid == Griffins)
if(gTeam[playerid] == 0)
{
SetPlayerPos(playerid,232633.4036,2829.8538,122.9219);
return 1;
}
else return SendClientMessage(playerid,COLOR_RED,"You must be in Team 0.");
}
That should do it.
uhm thank you but i don't waant a message to appear and then do i do the same for other pickups?
Reply
#8

Does anyone else know because when i try what coop did i get there errors

C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (80) : warning 202: number of arguments does not match definition
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (81) : warning 202: number of arguments does not match definition
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (82) : warning 202: number of arguments does not match definition
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (84) : warning 202: number of arguments does not match definition
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (87) : warning 217: loose indentation
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (112) : error 017: undefined symbol "COLOR_RED"
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (113) : warning 209: function "OnPlayerPickUpPickup" should return a value
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (114) : error 010: invalid function or declaration
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (115) : error 010: invalid function or declaration
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (117) : error 021: symbol already defined: "SetPlayerPos"
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (119) : error 010: invalid function or declaration
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (120) : error 010: invalid function or declaration
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (122) : error 021: symbol already defined: "SetPlayerPos"
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (124) : error 010: invalid function or declaration
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (125) : error 010: invalid function or declaration
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (127) : error 021: symbol already defined: "SetPlayerPos"
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (129) : error 055: start of function body without function header
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (130) : error 010: invalid function or declaration
Reply
#9

pawn Код:
if (pickupid == Griffins)
if(gTeam[playerid] == 0)
SetPlayerPos(playerid,232633.4036,2829.8538,122.9219);
}
else return 1;
}
or

pawn Код:
if (pickupid == Griffins)
if(gTeam[playerid] == 0)
SetPlayerPos(playerid,232633.4036,2829.8538,122.9219);
else return 1;
}
Reply
#10

Quote:
Originally Posted by cοοp
pawn Код:
if (pickupid == Griffins)
if(gTeam[playerid] == 0)
SetPlayerPos(playerid,232633.4036,2829.8538,122.9219);
}
else return 1;
}
or

pawn Код:
if (pickupid == Griffins)
if(gTeam[playerid] == 0)
SetPlayerPos(playerid,232633.4036,2829.8538,122.9219);
else return 1;
}
still nothing
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (80) : warning 202: number of arguments does not match definition
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (81) : warning 202: number of arguments does not match definition
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (82) : warning 202: number of arguments does not match definition
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (84) : warning 202: number of arguments does not match definition
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (87) : warning 217: loose indentation
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (110) : error 010: invalid function or declaration
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (113) : error 010: invalid function or declaration
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (114) : error 010: invalid function or declaration
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (117) : error 010: invalid function or declaration
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (119) : error 010: invalid function or declaration
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (120) : error 010: invalid function or declaration
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (123) : error 010: invalid function or declaration
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (126) : error 010: invalid function or declaration
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (127) : error 010: invalid function or declaration
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (130) : error 010: invalid function or declaration
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (132) : error 010: invalid function or declaration
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (76) : warning 204: symbol is assigned a value that is never used: "Griffins2"
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (77) : warning 204: symbol is assigned a value that is never used: "Griffins3"
C:\DOCUME~1\k\Desktop\Server\GAMEMO~1\elevator.pwn (7 : warning 204: symbol is assigned a value that is never used: "Griffins4"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)