Beiträge von SamQuest

    Hey liebe Scripter


    Ich möchte ein Business "scripten"


    nur wie stell ich das an hat da einer was für mich :o


    Das Busniness soll kaufbahr sein (für GF Platinium) und verkaufbahr sein


    Interior is auch kein problem nur eben das kaufen (das man das Kaufbahr machen kann^^)


    danke euch

    Huhu!


    Da ich nun weiß wie man neue Fraktionen in den Script added würde ich gerne wissen wie ich denn Autos mit einem Schutz script adde :o



    Ich hab da eine Sicherheitsfirma und diese soll eigene Autos haben nur hab ich mich damit nicht beschäftigt



    wenn einer Rat weiß danke :D

    mir is gerade eingefallen,das man in meinem script die gebäude nicht mit /enter betritt sondern bei einer bestimten coord automatisch spawnt


    (wenn ma so nem komischen silbernen pfeil anläuft)



    wie mach ich sowas vor dem vynil shop o.o


    wenn ich das dann mit /enter haben möchte ist das ja total zu kompliziert

    forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);



    und dann noch einige andere:


    public IsAtClothShop(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerToPoint(25.0,playerid,207.5627,-103.7291,1005.2578) || PlayerToPoint(25.0,playerid,203.9068,-41.0728,1001.8047))
    {//Binco & Suburban
    return 1;
    }
    else if(PlayerToPoint(30.0,playerid,214.4470,-7.6471,1001.2109) || PlayerToPoint(50.0,playerid,161.3765,-83.8416,1001.8047))
    {//Zip & Victim
    return 1;
    }
    }



    public IsAtGasStation(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    if(IsACop(playerid) && PlayerToPoint(5,playerid,1585.7896,-1677.6467,4.8970))
    { // COP GAS STATION
    return 1;
    }
    if(PlayerToPoint(10.0,playerid,1004.0070,-939.3102,42.1797) || PlayerToPoint(10.0,playerid,1944.3260,-1772.9254,13.3906))
    {//LS
    return 1;
    }
    else if(PlayerToPoint(10.0,playerid,-90.5515,-1169.4578,2.4079) || PlayerToPoint(10.0,playerid,-1609.7958,-2718.2048,48.5391))
    {//LS
    return 1;
    }
    else if(PlayerToPoint(10.0,playerid,-2029.4968,156.4366,28.9498) || PlayerToPoint(10.0,playerid,-2408.7590,976.0934,45.4175))
    {//SF
    return 1;
    }
    else if(PlayerToPoint(10.0,playerid,-2243.9629,-2560.6477,31.8841) || PlayerToPoint(10.0,playerid,-1676.6323,414.0262,6.9484))
    {//Between LS and SF
    return 1;
    }
    else if(PlayerToPoint(10.0,playerid,2202.2349,2474.3494,10.5258) || PlayerToPoint(10.0,playerid,614.9333,1689.7418,6.6968))
    {//LV
    return 1;
    }
    else if(PlayerToPoint(10.0,playerid,-1328.8250,2677.2173,49.7665) || PlayerToPoint(10.0,playerid,70.3882,1218.6783,18.5165))
    {//LV
    return 1;
    }
    else if(PlayerToPoint(10.0,playerid,2113.7390,920.1079,10.5255) || PlayerToPoint(10.0,playerid,-1327.7218,2678.8723,50.0625))
    {//LV
    return 1;
    }
    }



    usw usw

    E:\DOKUME~1\Speedy\Desktop\gm.pwn(5398) : error 017: undefined symbol "cmd"
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(8236) : warning 219: local variable "oldposx" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(8236) : warning 219: local variable "oldposy" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(8236) : warning 219: local variable "oldposz" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(23609) : warning 219: local variable "oldposx" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(23609) : warning 219: local variable "oldposy" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(23609) : warning 219: local variable "oldposz" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(23896) : warning 219: local variable "oldposx" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(23896) : warning 219: local variable "oldposy" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(23896) : warning 219: local variable "oldposz" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(23955) : warning 219: local variable "oldposx" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(23955) : warning 219: local variable "oldposy" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(23955) : warning 219: local variable "oldposz" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(26070) : warning 219: local variable "oldposx" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(26070) : warning 219: local variable "oldposy" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(26070) : warning 219: local variable "oldposz" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(34886) : warning 204: symbol is assigned a value that is never used: "olddistance"
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41769) : warning 219: local variable "oldposx" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41769) : warning 219: local variable "oldposy" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41769) : warning 219: local variable "oldposz" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41770) : warning 219: local variable "tempposx" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41770) : warning 219: local variable "tempposy" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41770) : warning 219: local variable "tempposz" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41772) : error 017: undefined symbol "x"
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41773) : error 017: undefined symbol "y"
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41774) : error 017: undefined symbol "z"
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41785) : error 055: start of function body without function header
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41786) : error 010: invalid function or declaration
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41791) : error 021: symbol already defined: "GetPlayerPos"
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41793) : error 010: invalid function or declaration
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41795) : error 010: invalid function or declaration
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41797) : error 010: invalid function or declaration
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41799) : error 010: invalid function or declaration
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41803) : error 010: invalid function or declaration
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41806) : error 021: symbol already defined: "GetPlayerPos"
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41811) : error 010: invalid function or declaration
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41815) : error 010: invalid function or declaration
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41819) : error 010: invalid function or declaration
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41823) : error 010: invalid function or declaration
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41827) : error 010: invalid function or declaration
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41833) : error 010: invalid function or declaration
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41840) : error 010: invalid function or declaration
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41847) : warning 219: local variable "posx" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41847) : warning 219: local variable "posy" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41847) : warning 219: local variable "posz" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41848) : warning 219: local variable "oldposx" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41848) : warning 219: local variable "oldposy" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41848) : warning 219: local variable "oldposz" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41849) : warning 219: local variable "tempposx" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41849) : warning 219: local variable "tempposy" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41868) : warning 219: local variable "posx" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41868) : warning 219: local variable "posy" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41868) : warning 219: local variable "posz" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41869) : warning 219: local variable "oldposx" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41869) : warning 219: local variable "oldposy" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41869) : warning 219: local variable "oldposz" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41870) : warning 219: local variable "tempposx" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41870) : warning 219: local variable "tempposy" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41870) : warning 219: local variable "tempposz" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41891) : warning 219: local variable "oldposx" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41891) : warning 219: local variable "oldposy" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41891) : warning 219: local variable "oldposz" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41892) : warning 219: local variable "tempposx" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41892) : warning 219: local variable "tempposy" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41892) : warning 219: local variable "tempposz" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41908) : warning 219: local variable "oldposx" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41908) : warning 219: local variable "oldposy" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(41908) : warning 219: local variable "oldposz" shadows a variable at a preceding level
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(44232) : error 055: start of function body without function header
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(44235) : warning 203: symbol is never used: "ivw"
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(44235) : warning 203: symbol is never used: "oldposx"
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(44235) : warning 203: symbol is never used: "oldposy"
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(44235) : warning 203: symbol is never used: "oldposz"
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(44235) : warning 203: symbol is never used: "plvw"
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(44235) : warning 203: symbol is never used: "posx"
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(44235) : warning 203: symbol is never used: "posy"
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(44235) : warning 203: symbol is never used: "posz"
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(44235) : warning 203: symbol is never used: "tempposx"
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(44235) : warning 203: symbol is never used: "tempposy"
    E:\DOKUME~1\Speedy\Desktop\gm.pwn(44235) : warning 203: symbol is never used: "tempposz"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    21 Errors.



    wieso is das immer so schwer^^

    also ich wills in den gamemode reinmachen.



    cmdtext funkta uch nicht


    das hab ich drinn
    forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);


    wie du gesagt hast und das


    if(IsPlayerConnected(playerid))
    {
    new Float:posx, Float:posy, Float:posz;
    new Float:oldposx, Float:oldposy, Float:oldposz;
    new Float:tempposx, Float:tempposy, Float:tempposz;
    GetPlayerPos(playerid, oldposx, oldposy, oldposz);
    new plvw, ivw;
    plvw = GetPlayerVirtualWorld(playerid);
    //radi = 2.0; //Trigger Radius
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(!BigEar[i])
    {
    ivw = GetPlayerVirtualWorld(i);


    if (ivw == plvw)
    {

    GetPlayerPos(i, posx, posy, posz);
    tempposx = (oldposx -posx);
    tempposy = (oldposy -posy);
    tempposz = (oldposz -posz);
    //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
    if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
    {
    SendClientMessage(i, col1, string);
    }
    else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8)))
    {
    SendClientMessage(i, col2, string);
    }
    else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
    {
    SendClientMessage(i, col3, string);
    }
    else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2)))
    {
    SendClientMessage(i, col4, string);
    }
    else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
    {
    SendClientMessage(i, col5, string);
    }
    }
    }]