ich habe mir irgentwann ma ne adminbase gescriptet die auch perfekt geklappt hat.
nachdem ich einiges im script hinzugefügt und geändert habe, ging sie net mehr^^
hier mein script:
new Admin;//adminaufzug
new Para;//fallschirm beim adminhq
forward admin();
public OnGameModeInit()
{
//_________________________________________ADMIN BASE___________________________________
CreateObject(6280, 2366.4060058594, -1705.4576416016, 1530.3979492188, 0, 0, 3.969970703125);
CreateObject(8843, 2420.3564453125, -1623.5595703125, 1535.3658447266, 0, 0, 89.324493408203);
CreateObject(3605, 2207.3244628906, -1651.7696533203, 1551.4140625, 0, 0, 3.9697265625);
CreateObject(4825, 2181.1396484375, -1702.6938476563, 1542.4815673828, 0, 0, 3.969970703125);
CreateObject(4824, 2258.7697753906, -1697.2094726563, 1540.3029785156, 0, 0, 3.969970703125);
CreateObject(4866, 2330.5847167969, -1843.2534179688, 1527.7722167969, 0, 0, 0);
CreateObject(3980, 2208.4252929688, -1773.96875, 1554.6759033203, 0, 0, 3.969970703125);
CreateObject(4002, 2207.2683105469, -1765.6461181641, 1587.4477539063, 0, 0, 3.969970703125);
CreateObject(7419, 2391.3371582031, -1616.2966308594, 1529.8823242188, 0, 0, 95.279479980469);
CreateObject(5003, 2618.423828125, -1979.4825439453, 1533.8712158203, 0, 0, 0);
CreateObject(10767, 2404.4497070313, -1986.0944824219, 1512.7999267578, 0, 0, 314.34533691406);
CreateObject(10766, 2277.8354492188, -1985.2370605469, 1525.2629394531, 0, 0, 89.324493408203);
CreateObject(4550, 2358.1723632813, -1726.8215332031, 1612.5065917969, 0, 0, 0);
CreateObject(4726, 2358.4519042969, -1727.2668457031, 1822.4517822266, 0, 0, 0);
Admin = CreateObject(17613, 2489.3386230469, -1668.4879150391, 11.477056503296, 0, 0, 0);
Para = CreatePickup(371,1,2451.4478,-1665.0406,1536.4869,-1);
//______________________________________ADMIN BASE________________________________________________
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/adminhoch", true)==0)
{
if(IsPlayerInRangeOfPoint(playerid,50.0,2489.3386230469, -1668.4879150391, 11.477056503296))
{
if(IsPlayerAdmin(playerid))
{
MoveObject(Admin, 2489.7919921875, -1668.4963378906, 1535.7270507813,20);
SendClientMessage(playerid,0x00FFFFFF," Der Aufzug ist gestartet!!!!");
return 1;
}
return 1;
}
return 1;
}
else if(strcmp(cmdtext, "/adminrunter", true)==0)
{
if(IsPlayerInRangeOfPoint(playerid,50.0,2489.7919921875, -1668.4963378906, 1535.7270507813))
{
if(IsPlayerAdmin(playerid))
{
MoveObject(Admin, 2489.3386230469, -1668.4879150391, 11.477056503296,20);
SendClientMessage(playerid,0x00FFFFFF," Der Aufzug geht runter!!!");
SetTimer("admin",45000,20);
return 1;
}
return 1;
}
return 1;
}
return 1;
}
public admin()
{
MoveObject(Admin,2489.3386230469, -1668.4879150391, 11.477056503296,20);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == Para)
{
SendClientMessage(playerid,0xC11D91B5,"Du hast nun ein Fallschirm, um sicher wieder runter zu kommen.");
GivePlayerWeapon(playerid,46,1);
}
return 1;
}