Beiträge von Time2Script

    Hier SMS:
    if(strcmp(cmd, "/sms", true) == 0)
    {
    if (Spieler[playerid][Handy] < 1)
    {
    SendClientMessage(playerid, Weiß, "Sie besitzen noch kein Handy.");
    return 1;
    }
    if(Telefonstatus[giveplayerid] > 0)
    {
    SendClientMessage(playerid, Weiß, "Dieser Spieler hat sein Handy Ausgeschalten.");
    return 1;
    }
    if(Spieler[playerid][Muted] == 1)
    {
    SendClientMessage(playerid, Gelb, "Da sie von einem Admin Gemutet wurden können sie nicht schreiben.");
    return 1;
    }
    if(Spieler[playerid][Guthaben] < 1){
    return SendClientMessage(playerid,Rot,"Sie haben nicht genug Guthaben auf ihrem Handy.");}
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, Weiß, "Benutze: /sms [ID] [SMS-Text]");
    return 1;
    }
    giveplayerid = strval(tmp);
    if (IsPlayerConnected(giveplayerid))
    {
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    new length = strlen(cmdtext);
    while ((idx < length) && (cmdtext[idx] <= ' '))
    {
    idx++;
    }
    new offset = idx;
    new result[256];
    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
    {
    result[idx - offset] = cmdtext[idx];
    idx++;
    }
    result[idx - offset] = EOS;
    if(!strlen(result))
    {
    SendClientMessage(playerid, Weiß, "Benutze: /sms [ID] [SMS-Text]");
    return 1;
    }
    format(string, sizeof(string), "SMS: %s Absender: %s (ID:%d)",(result),sendername,giveplayerid);
    SendClientMessage(giveplayerid, Gelb, string);
    format(string, sizeof(string), "Sms an(ID:%d) Text:(%s)",giveplayerid, (result));
    SendClientMessage(playerid, Grün, string);
    GameTextForPlayer(playerid, "SMS versaendet -1$ Guthaben", 1000, 1);
    Spieler[playerid][Guthaben] -= 1;
    return 1;
    }
    }
    }
    Das ist nen /sms und nun schau wie du Call machst da das nun leichter fallen dürfte wenn du was als Forlage hast.


    Mfg

    new vehid,neon;
    vehid = GetPlayerVehicleID(playerid);
    neon = CreateObject(18648,0,0,0,0,0,0,283);
    AttachObjectToVehicle(neon, vehid, 0.2,0,-0.30,0,0,0);

    xD haste schonma gesehen wie alt das Thema ist ?


    Aber back too Topic:



    new SpawnedABarrier3[MAX_PLAYERS][20]; //Wie viel man SPawnen kann muss man unten erweitern.
    if(strcmp(cmd, "/arb1", true) == 0)
    {
    new Float:X1, Float:Y1, Float:Z1, Float:rZ1;
    GetPlayerPos(playerid, X1, Y1, Z1);
    GetPlayerFacingAngle(playerid, rZ1);
    if(Spieler[playerid][admin] < 5) { SendClientMessage(playerid, 0x00FF00AA, "Sie sind kein Admin."); return 1; }
    if (SpawnedABarrier3[playerid][0] > 0 &&
    SpawnedABarrier3[playerid][1] > 0 &&
    SpawnedABarrier3[playerid][2] > 0 &&
    SpawnedABarrier3[playerid][3] > 0 &&
    SpawnedABarrier3[playerid][4] > 0 &&
    SpawnedABarrier3[playerid][5] > 0 &&
    SpawnedABarrier3[playerid][6] > 0 &&
    SpawnedABarrier3[playerid][7] > 0 &&
    SpawnedABarrier3[playerid][8] > 0 &&
    SpawnedABarrier3[playerid][9] > 0 &&
    SpawnedABarrier3[playerid][10] > 0 &&
    SpawnedABarrier3[playerid][11] > 0 &&
    SpawnedABarrier3[playerid][12] > 0 &&
    SpawnedABarrier3[playerid][13] > 0 &&
    SpawnedABarrier3[playerid][14] > 0 &&
    SpawnedABarrier3[playerid][15] > 0 &&
    SpawnedABarrier3[playerid][16] > 0 &&
    SpawnedABarrier3[playerid][17] > 0 &&
    SpawnedABarrier3[playerid][18] > 0 &&
    SpawnedABarrier3[playerid][19] > 0)
    {
    SendClientMessage(playerid, 0xFF0000AA, "Sie haben schon 20 Objekte errichtet! ");
    return 1;
    }
    else if (SpawnedABarrier3[playerid][0] <= 0) { SpawnedABarrier3[playerid][0] = CreateObject(981, X1, Y1, Z1, 0, 0, rZ1+180); } //981 = ObjectID
    else if (SpawnedABarrier3[playerid][1] <= 0) { SpawnedABarrier3[playerid][1] = CreateObject(981, X1, Y1, Z1, 0, 0, rZ1+180); }
    else if (SpawnedABarrier3[playerid][2] <= 0) { SpawnedABarrier3[playerid][2] = CreateObject(981, X1, Y1, Z1, 0, 0, rZ1+180); }
    else if (SpawnedABarrier3[playerid][3] <= 0) { SpawnedABarrier3[playerid][3] = CreateObject(981, X1, Y1, Z1, 0, 0, rZ1+180); }
    else if (SpawnedABarrier3[playerid][4] <= 0) { SpawnedABarrier3[playerid][4] = CreateObject(981, X1, Y1, Z1, 0, 0, rZ1+180); }
    else if (SpawnedABarrier3[playerid][5] <= 0) { SpawnedABarrier3[playerid][5] = CreateObject(981, X1, Y1, Z1, 0, 0, rZ1+180); }
    else if (SpawnedABarrier3[playerid][6] <= 0) { SpawnedABarrier3[playerid][6] = CreateObject(981, X1, Y1, Z1, 0, 0, rZ1+180); }
    else if (SpawnedABarrier3[playerid][7] <= 0) { SpawnedABarrier3[playerid][7] = CreateObject(981, X1, Y1, Z1, 0, 0, rZ1+180); }
    else if (SpawnedABarrier3[playerid][8] <= 0) { SpawnedABarrier3[playerid][8] = CreateObject(981, X1, Y1, Z1, 0, 0, rZ1+180); }
    else if (SpawnedABarrier3[playerid][9] <= 0) { SpawnedABarrier3[playerid][9] = CreateObject(981, X1, Y1, Z1, 0, 0, rZ1+180); }
    else if (SpawnedABarrier3[playerid][10] <= 0) { SpawnedABarrier3[playerid][10] = CreateObject(981, X1, Y1, Z1, 0, 0, rZ1+180); }
    else if (SpawnedABarrier3[playerid][11] <= 0) { SpawnedABarrier3[playerid][11] = CreateObject(981, X1, Y1, Z1, 0, 0, rZ1+180); }
    else if (SpawnedABarrier3[playerid][12] <= 0) { SpawnedABarrier3[playerid][12] = CreateObject(981, X1, Y1, Z1, 0, 0, rZ1+180); }
    else if (SpawnedABarrier3[playerid][13] <= 0) { SpawnedABarrier3[playerid][13] = CreateObject(981, X1, Y1, Z1, 0, 0, rZ1+180); }
    else if (SpawnedABarrier3[playerid][14] <= 0) { SpawnedABarrier3[playerid][14] = CreateObject(981, X1, Y1, Z1, 0, 0, rZ1+180); }
    else if (SpawnedABarrier3[playerid][15] <= 0) { SpawnedABarrier3[playerid][15] = CreateObject(981, X1, Y1, Z1, 0, 0, rZ1+180); }
    else if (SpawnedABarrier3[playerid][16] <= 0) { SpawnedABarrier3[playerid][16] = CreateObject(981, X1, Y1, Z1, 0, 0, rZ1+180); }
    else if (SpawnedABarrier3[playerid][17] <= 0) { SpawnedABarrier3[playerid][17] = CreateObject(981, X1, Y1, Z1, 0, 0, rZ1+180); }
    else if (SpawnedABarrier3[playerid][18] <= 0) { SpawnedABarrier3[playerid][18] = CreateObject(981, X1, Y1, Z1, 0, 0, rZ1+180); }
    else if (SpawnedABarrier3[playerid][19] <= 0) { SpawnedABarrier3[playerid][19] = CreateObject(981, X1, Y1, Z1, 0, 0, rZ1+180); }
    SendClientMessage(playerid, 0x00FF00AA, "Sie haben eine Barriere errichtet. ");
    SetPlayerPos(playerid, X1, Y1, Z1+2);
    return 1;
    }


    Mfg

    Dann hast du das
    new Text3D:GM3D[MAX_PLAYERS];


    Schon i.wo Definiert,


    Mfg

    Das ist Falsch.


    Du musst nen Timer erstellen z.b "Uerberprüfen"
    Wenn der user dann in der Besagten Zone ist "kommt das Textdraw"
    Und wenn man raussgehnt wieder weg =)


    Mfg


    Ich habe das so gemacht.
    Unter meinen Befehlen;
    Wenn man Maske ein eingiebt
    ShowPlayerNameTagForPlayer(i, playerid, 0);
    maske[playerid] = 1;


    Wenn man Maske auseingiebt
    ShowPlayerNameTagForPlayer(i, playerid, 1);
    maske[playerid] = 0;


    Onplayertext
    if(maske[playerid] == 1)
    {
    new string[256];
    format(string, sizeof(string), "S.W.A.T Einheit sagt: %s", text);
    ProxDetector(20.0, playerid, string,Weiß,Weiß,Weiß,Weiß,Weiß);
    }
    else // und dann wie man im normalen chat schreiben soll

    new Text3D:GM3D[MAX_PLAYERS];


    if(Spieler[playerid][admin] == 1)
    {
    new GMTEXT[MAX_PLAYER_NAME];
    GMTEXT = "Supporter";
    GM3D[playerid] = Create3DTextLabel(GMTEXT,Orange,0,0,0,70.5,1);
    Attach3DTextLabelToPlayer(GM3D[playerid], playerid, 0.0, 0.0, 0.45);
    }
    else if(Spieler[playerid][admin] == 2)
    {
    new GMTEXT[MAX_PLAYER_NAME];
    GMTEXT = "Moderator";
    GM3D[playerid] = Create3DTextLabel(GMTEXT,Orange,0,0,0,70.5,1);
    Attach3DTextLabelToPlayer(GM3D[playerid], playerid, 0.0, 0.0, 0.45);
    } //usw halt


    Mfg

    if(newstate == PLAYER_STATE_DRIVER)
    {
    new tankstring[128];
    format(tankstring, sizeof(tankstring), "KmH %d Benzin %d", //Geschwindichkeits Define.);
    Tankanzeige[playerid] = TextDrawCreate(200, 380, tankstring);
    TextDrawFont(Tankanzeige[playerid], 2);
    TextDrawLetterSize(Tankanzeige[playerid], 0.6, 1.8);
    TextDrawColor(Tankanzeige[playerid], Grün);
    TextDrawSetOutline(Tankanzeige[playerid], 1);
    TextDrawUseBox(Tankanzeige[playerid], 1);
    TextDrawShowForPlayer(playerid, Tankanzeige[playerid]);
    }


    Usw