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;
}
}
}
}
}
|
Originally Posted by cοοp
That's because you're dedicating all locations to team 0.
|
|
Originally Posted by cοοp
Could you show us the Full version of your Filter Script (you don't have to include the objects)?
|
i have just started#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;
}
}
}
}
}
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.");
}
|
Originally Posted by cοοp
pawn Код:
|
if (pickupid == Griffins)
if(gTeam[playerid] == 0)
SetPlayerPos(playerid,232633.4036,2829.8538,122.9219);
}
else return 1;
}
if (pickupid == Griffins)
if(gTeam[playerid] == 0)
SetPlayerPos(playerid,232633.4036,2829.8538,122.9219);
else return 1;
}
|
Originally Posted by cοοp
pawn Код:
pawn Код:
|
: warning 204: symbol is assigned a value that is never used: "Griffins4"