Jetzt geht das mit dem einloggen schon wieder nicht.
Was ist denn da falsch:
#include <a_samp>
#include <a_players>
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA
//forwards
forward LSTimer(playerid);
forward SFTimer(playerid);
forward LVTimer(playerid);
public OnFilterScriptInit()
{
CreatePickup(1239,23,1683.6827,-2329.7661,13.5469,-1);//ls pickup
CreatePickup(1239,23,-1417.7489,-296.1070,14.1484,-1);//sf pickup
CreatePickup(1239,23,1676.0457,1447.8201,10.7856,-1);//lv pickup
Create3DTextLabel("[Flughafen LS]",COLOR_YELLOW,1683.6295,-2329.7297,14.2270,40.0,0,0);
Create3DTextLabel("[Flughafen SF]",COLOR_YELLOW,-1417.6017,-295.9125,14.7016,40.0,0,0);
Create3DTextLabel("[Flughafen LV]",COLOR_YELLOW,1676.0546,1447.7469,11.4576,40.0,0,0);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/flug ls", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,1.2,1683.6827,-2329.7661,13.5469)||IsPlayerInRangeOfPoint(playerid,1.2,-1417.7489,-296.1070,14.1484)||IsPlayerInRangeOfPoint(playerid,1.2,1676.0457,1447.8201,10.7856))
{
SetPlayerInterior(playerid,1);
SetPlayerPos(playerid,1.61,34.74,1199.0);
GivePlayerMoney(playerid,-3000);
SendClientMessage(playerid,COLOR_GREEN,"Du hast 3000$ für einen Flug nach LS bezahlt");
SetTimer("LSTimer",60000,0);
return 1;
}
else
SendClientMessage(playerid,COLOR_RED,"Du bist an keinem Flughafen");
}
if (strcmp(cmdtext, "/flug sf", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,1.2,1683.6827,-2329.7661,13.5469)||IsPlayerInRangeOfPoint(playerid,1.2,-1417.7489,-296.1070,14.1484)||IsPlayerInRangeOfPoint(playerid,1.2,1676.0457,1447.8201,10.7856))
{
SetPlayerInterior(playerid,1);
SetPlayerPos(playerid,1.61,34.74,1199.0);
GivePlayerMoney(playerid,-300);
SendClientMessage(playerid,COLOR_GREEN,"Du hast 300$ für einen Flug nach SF bezahlt");
SetTimer("SFTimer",60000,0);
return 1;
}
else
SendClientMessage(playerid,COLOR_RED,"Du bist an keinem Flughafen");
}
if (strcmp(cmdtext, "/flug lv", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,1.2,1683.6827,-2329.7661,13.5469)||IsPlayerInRangeOfPoint(playerid,1.2,-1417.7489,-296.1070,14.1484)||IsPlayerInRangeOfPoint(playerid,1.2,1676.0457,1447.8201,10.7856))
{
SetPlayerInterior(playerid,1);
SetPlayerPos(playerid,1.61,34.74,1199.0);
GivePlayerMoney(playerid,-300);
SendClientMessage(playerid,COLOR_GREEN,"Du hast 300$ für einen Flug nach LV bezahlt");
SetTimer("LVTimer",60000,0);
return 1;
}
else
SendClientMessage(playerid,COLOR_RED,"Du bist an keinem Flughafen");
}
if (strcmp(cmdtext, "/flug", true) == 0)
{
SendClientMessage(playerid,COLOR_YELLOW,"/flug [ls,sf,lv]");
return 1;
}
return 0;
}
public LSTimer(playerid)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1694.4519,-2329.4133,13.5469);
return 1;
}
public SFTimer(playerid)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-1422.6346,-292.5664,14.1484);
return 1;
}
public LVTimer(playerid)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1676.1832,1453.1887,10.7809);
return 1;
}
kann mir pls einer helfen
Mfg
apple