machs doch einfach so
if(IsPlayerAdmin(playerid))
{
if(IsPlayerToPoint(....
Hi, kannst du mir sagen wo ich das mache? Weil Scripte erst ca. 3 Tagen und hab nur jetzt Gates gemacht und teleports und paar Autos gespawnt und 1 DM Zone gemacht.
Bei mir siehts so aus:
//Admin Burg
new Gate1;
new bool: OpenGate1[MAX_PLAYERS];
Gate1 = CreateObject(980, -2914.917969, -68.470116, 4.496734, 0.0000, 0.0000, 270.0000); //(admincastle)
for(new i = 0; i < MAX_PLAYERS; i++)
{
//Gate1 (admincastle)
if(PlayerToPoint(15.0, i,-2914.917969, -68.470116, 4.496734)&& OpenGate1[i] == false) //schließen offnen
{
OpenGate1[i] = true;
MoveObject(Gate1, -2914.917969, -68.470116, 9.400000, 1.5);
}
else if(!PlayerToPoint(15.0, i,-2914.917969, -68.470116, 4.496734) && OpenGate1[i] == true) //offnen schließen
{
OpenGate1[i] = false;
MoveObject(Gate1, -2914.917969, -68.470116, 4.496734, 1.5);
}
Muss ich dort bei max players was verändern?
Habs versucht aber leider nicht hingekriegt. Kommen lauter errors.