[SAMMELTHREAD] Kleine Scripting Fragen

Dein Problem konnte durch einen User gelöst werden? Bedank dich bei ihm indem du seinen Beitrag als Hilfreich markierst sowie einen Daumen oben dalässt
Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Jeffry: Kannst du mir eventuell kurz aushelfen?


    Ich suche eine Methode um Sparend Bäume zu erstellen. Sprich ich habe einen Wald und habe keinerlei Lust jetzt hunderte von Bäumen einzeln zu Mappen.
    Kannst du mir eventuell was empfehlen, womit ich Bäume in einem bestimmten Umkreis erstellen kann? Eventuell durch eine Schleife ?


    Danke!

  • Die leichteste Methode wird sein, durch Zufallszahlen in einer For-Schleife Bäume zu erstellen.

    new minx = 10, maxx = 50, miny = 10, maxy = 50, ranx, rany;
    for (new i = 0; i < MAX_BAUM; i ++) {
    ranx = minx + random(maxx - minx);
    rany = miny + random(maxy - miny);
    CreateObject(..., ranx, rany);
    }
    in etwa. Da läufst du allerdings Gefahr, das Bäume auch ineinander stecken könnten. Ist also, je nach Anzahl/Platz-Verhältnis nicht gerade die schönste Lösung.


    Mein CS:GO Server: 62.75.168.39:27016


    Ich bin so hungrig, dass ich vor lauter Durst nicht weiß, was ich rauchen soll - so müde bin ich!
    Freedom is just another word for 'Nothing left to lose'

  • Wollte dich fragen ob du mir verräts wie man in einem "Befehl" anstatt /test ein Symbol verwenden kann wie z.B "#".


    Da musst du den Text von OnPlayerText prüfen, ob die Zeichen bis zum ersten Leerzeichen (strtok oder sscanf) übereinstimmen.


    Möglich ein gemapptes Flugzeug zum fliegen zum bringen ?


    Nicht direkt, nur mit MoveObject, sofern es ein Objekt ist.
    Oder du attachst es an einen NPC, der in einem RC Baron fliegt, das würde gehen.

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • Fynator:
    AttachObjectToVehicle, MapAndreas Plugin


    Beim Attachen könntest du das Flugzeug z.B. an ein anderes "Ankleben"


    LeijaT: Ich versuchs, Danke


    new minx = -531.3795, maxx = -547.3630, miny = 5335.2490, maxy = 5478.1011, ranx, rany; // Tag mismatch
    for (new i = 0; i < 50; i ++) {
    ranx = minx + random(maxx - minx);
    rany = miny + random(maxy - miny);
    CreateObject(660, ranx, rany); // number of arguments does not match definition
    }


    Folgende Fehler:

    warning 213: tag mismatch
    warning 213: tag mismatch
    warning 213: tag mismatch
    warning 213: tag mismatch
    warning 202: number of arguments does not match definition
    warning 202: number of arguments does not match definition
    warning 202: number of arguments does not match definition
    warning 202: number of arguments does not match definition


    Tag mismatch gelöst indem ich die RotX etc. noch eingetragen habe sprich:
    CreateObject(660, ranx, rany,0.0,0.0,0.0,0.0);

    Einmal editiert, zuletzt von ArTeX ()

  • new Float:minx = -531.3795, Float:maxx = -547.3630, Float:miny = 5335.2490, Float:maxy = 5478.1011, Float:ranx, Float:rany;
    for (new i = 0; i < 50; i ++)
    {
    ranx = minx + random(floatround(maxx - minx));
    rany = miny + random(floatround(maxy - miny));
    CreateObject(660, ranx, rany, Z_HIER_REIN, 0.0, 0.0, 0.0, 300.0);
    }

  • Die X-Koordinaten sind vertauscht sehe ich grade.
    new Float:minx = -531.3795, Float:maxx = -547.3630, Float:miny = 5335.2490, Float:maxy = 5478.1011, Float:ranx, Float:rany;
    zu:
    new Float:minx = -547.3630, Float:maxx = -531.3795, Float:miny = 5335.2490, Float:maxy = 5478.1011, Float:ranx, Float:rany;

  • Mit einem weiteren Platzhalter:
    if(strcmp(cmd, "/admins", true) == 0)
    {
    new Count,i,name[24],string[145];
    for(i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && IsPlayerAdmin(i)) Count++;
    if(!Count) return SendClientMessage(playerid,COLOR_GREEN,"Admins Online: Keiner");
    if(Count == 1)
    {
    for(i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && IsPlayerAdmin(i)) break;
    GetPlayerName(i,name,24); format(string,sizeof(string),"Admins Online: %s (%d)",name, SpielerInfo[i][Level]);
    return SendClientMessage(playerid,COLOR_GREEN,string);
    }
    if(Count >= 1)
    {
    new bool:First = false;
    for(i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && IsPlayerAdmin(i))
    {
    GetPlayerName(i,name,24);
    if(!First)
    {
    format(string,sizeof(string),"Admins Online: %s (%d),",name, SpielerInfo[i][Level]);
    First = true;
    }
    else format(string,sizeof(string),"%s %s (%d),",string,name,SpielerInfo[i][Level]);
    }
    return SendClientMessage(playerid,COLOR_GREEN,string);
    }
    return 1;
    }

  • Jeffry:


    Ich bekomme unmengen an Errors, mir fehlt glaube ich irgendeine Include.


    Spoiler anzeigen


    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\YSI\y_amx.inc(324) : warning 219: local variable "i" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\YSI\y_utils.inc(250) : warning 219: local variable "i" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\YSI\y_utils.inc(343) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\YSI\y_utils.inc(497) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\YSI\y_utils.inc(540) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\YSI\y_utils.inc(558) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\YSI\y_malloc.inc(216) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\YSI\y_hooks/impl.inc(225) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\YSI\y_hooks/impl.inc(323) : warning 219: local variable "i" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\YSI\y_inline.inc(260) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\YSI\y_inline.inc(678) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\YSI\y_ini.inc(365) : warning 219: local variable "i" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\YSI\y_ini.inc(395) : warning 219: local variable "i" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\YSI\y_ini.inc(487) : warning 219: local variable "i" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\YSI\y_ini.inc(703) : warning 219: local variable "i" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\YSI\y_ini.inc(770) : warning 219: local variable "i" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\YSI\y_ini.inc(837) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\YSI\y_ini.inc(957) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\YSI\y_ini.inc(1030) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\YSI\y_ini.inc(1051) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\YSI\y_ini.inc(1070) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\YSI\y_ini.inc(1092) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\YSI\y_ini.inc(1124) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\YSI\y_ini.inc(1160) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\YSI\y_ini.inc(1188) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\YSI\y_ini.inc(1266) : warning 219: local variable "i" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\YSI\y_ini.inc(1344) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\sscanf2.inc(101) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\sscanf2.inc(219) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\sscanf2.inc(219) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\sscanf2.inc(279) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\sscanf2.inc(279) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\pawno\include\Dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(23) : warning 219: local variable "i" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(34) : warning 219: local variable "i" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(368) : warning 219: local variable "i" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(393) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(514) : warning 219: local variable "i" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(710) : warning 219: local variable "i" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(783) : warning 219: local variable "i" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(826) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(847) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(975) : warning 219: local variable "i" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(1043) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(1049) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(1055) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(1061) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(1363) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(1405) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(1416) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(1463) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(1465) : warning 219: local variable "i" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(1482) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(1494) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(1511) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(1568) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(1593) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(1827) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(1872) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(1905) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(1940) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(1973) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2017) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2050) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2088) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2118) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2145) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2201) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2229) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2256) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2279) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2321) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2447) : error 010: invalid function or declaration
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2450) : error 010: invalid function or declaration
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2451) : error 010: invalid function or declaration
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2452) : error 010: invalid function or declaration
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2454) : error 010: invalid function or declaration
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2456) : error 010: invalid function or declaration
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2458) : error 010: invalid function or declaration
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2461) : error 010: invalid function or declaration
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2464) : error 010: invalid function or declaration
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2469) : error 010: invalid function or declaration
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2471) : error 010: invalid function or declaration
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2473) : error 010: invalid function or declaration
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2554) : warning 219: local variable "i" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2564) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2573) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2579) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2581) : warning 219: local variable "i" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2590) : warning 219: local variable "i" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2598) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2600) : warning 219: local variable "i" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2611) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2613) : warning 219: local variable "i" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2624) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2626) : warning 219: local variable "i" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2643) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2658) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2687) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2689) : warning 219: local variable "i" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2699) : warning 219: local variable "i" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2706) : warning 219: local variable "i" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2764) : warning 219: local variable "i" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2789) : warning 219: local variable "i" shadows a variable at a preceding level
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2800) : warning 203: symbol is never used: "Count"
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2800) : warning 203: symbol is never used: "First"
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2800) : warning 203: symbol is never used: "i"
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2800) : warning 203: symbol is never used: "name"
    C:\Users\Dave\Desktop\Hoe's Wonderland\gamemodes\LnD.pwn(2800) : warning 203: symbol is never used: "string"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

    Spoiler anzeigen
    12 Errors.


    Mit freundlichen Grüßen
    JustMe.77 8)

  • Jeffry:


    Hast Recht, hat eine Klammer gefehlt und musste die Admin Variable umändern habe nicht drauf geachtet aber funktioniert wie gewollt, danke dir :).


    Wie stelle ich das an das ALLE Admins die es auf dem Server gibt angezeigt werden, auch wenn die Offline sind?


    Mit freundlichen Grüßen
    JustMe.77 8)

  • Jeffry:
    Funktioniert schon mal!


    Habe jetzt versucht, dass Objekte gelöscht werden falls diese in der nähe sich befinden.
    Klappt leider nicht ganz^


    SetTimer("IsPlayerNearObject", 800, true);


    forward IsPlayerNearObject(playerid, objectid, Float:range);
    public IsPlayerNearObject(playerid, objectid, Float:range)
    {
    new Float:X, Float:Y, Float:Z;
    GetObjectPos(objectid, X, Y, Z);
    if(IsPlayerInRangeOfPoint(playerid, 3.0, X, Y, Z)) return DestroyObject(objectid);
    return false;
    }

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen