Beiträge von Kevin_CaruZo

    if(strcmp(cmdtext, "/fahrrad", true))


    {


    if(IsPlayerInRangeOfPoint(playerid,3.0,1778.3696,-1885.7913,13.3881))


    {


    new Float:x, Float:y, Float:z, Float:a;


    GetPlayerPos(playerid, x, y, z);


    GetPlayerFacingAngle(playerid, a);


    new vID = CreateVehicle(509, x, y, z, a, -1, -1, -1);


    PutPlayerInVehicle(playerid, vID, 0);


    SendClientMessage(playerid, 0xFF00FFFF, "Fahrrad!");


    return 1;


    } else {


    SendClientMessage(playerid, 0xFF0000FF, "Du bist nicht in der Nähe!");


    return 1;


    }


    return 1;


    }

    if(IsPlayerInRangeOfPoint(playerid,10.0,1778.3696,-1885.7913,13.3881)) return SendClientMessage(playerid, COLOR_RED, "Du bist nicht in der Nähe des Fahrrad mietung.");
    Ich würde das so machen

    Dann so:

    ocmd:fahrrad(playerid, params[])
    {
    IsPlayerInRangeOfPoint(playerid, X, Y, Z); return SendClientMessage(playerid, "Du kannst dir hier kein Fahrrad hollen.");
    new Float:x, Float:y, Float:z, Float:a;
    GetPlayerPos(playerid, x,y,z);
    GetPlayerFacingAngle(playerid, a);
    new vID = CreateVehicle(509, x,y,z,a, -1, -1, -1);
    PutPlayerInVehicle(playerid, vID, 0);
    SendClientMessage(playerid, 0xFF00FFFF, "Fahrrad!");
    return 1;
    }

    ocmd:fahrrad(playerid, params[])
    {
    new Float:x, Float:y, Float:z, Float:a;
    GetPlayerPos(playerid, x,y,z);
    GetPlayerFacingAngle(playerid, a);
    new vID = CreateVehicle(509, x,y,z,a, -1, -1, -1);
    PutPlayerInVehicle(playerid, vID, 0);
    SendClientMessage(playerid, 0xFF00FFFF, "Fahrrad!");
    return 1;
    }

    Ich habe ein Problem, undzwar habe ich das mit dem adminRang gemacht das die Adminränge in einem stock angezeigt werden und über spielt werden.
    Und ich wollte wissen wie ich das machen kann, weil wenn ich /admins mache steht da überall Projektleiter: stan.brady
    Und wenn ein user das macht steht da User: stan.brady kann mir jemand helfen?
    Der Code von /admins:


    if (strcmp(cmd, "/admins", true) == 0 || strcmp(cmd, "/supporter", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    SendClientMessage(playerid, COLOR_GREY, "Teamliste:");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerInfo[i][pSupporter] == 1)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"Supporter: %s || Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
    SendClientMessage(playerid, COLOR_GREY, string);
    }
    if(PlayerInfo[i][pSupporter] == 2)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"Supporter %s || Nummer: %d",sendername,PlayerInfo[i][pPnumber]);
    SendClientMessage(playerid, COLOR_GREY, string);
    }
    if(PlayerInfo[i][pAdmin] == 1)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"%s: %s || Nummer: %d",AdminRang(playerid),sendername,PlayerInfo[i][pPnumber]);
    SendClientMessage(playerid, COLOR_GREY, string);
    }
    if(PlayerInfo[i][pAdmin] == 2)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"%s: %s || Nummer: %d",AdminRang(playerid),sendername,PlayerInfo[i][pPnumber]);
    SendClientMessage(playerid, COLOR_GREY, string);
    }
    if(PlayerInfo[i][pAdmin] == 3)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"%s: %s || Nummer: %d",AdminRang(playerid),sendername,PlayerInfo[i][pPnumber]);
    SendClientMessage(playerid, COLOR_GREY, string);
    }
    if(PlayerInfo[i][pAdmin] == 1337)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"%s: %s || Nummer: %d",AdminRang(playerid),sendername,PlayerInfo[i][pPnumber]);
    SendClientMessage(playerid, COLOR_GREY, string);
    }
    if(PlayerInfo[i][pAdmin] == 1338)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"%s: %s || Nummer: %d",AdminRang(playerid),sendername,PlayerInfo[i][pPnumber]);
    SendClientMessage(playerid, COLOR_GREY, string);
    }
    if(PlayerInfo[i][pAdmin] == 2000)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"%s: %s || Nummer: %d",AdminRang(playerid),sendername,PlayerInfo[i][pPnumber]);
    SendClientMessage(playerid, COLOR_GREY, string);
    }
    if(PlayerInfo[i][pAdmin] == 2001)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"%s: %s || Nummer: %d",AdminRang(playerid),sendername,PlayerInfo[i][pPnumber]);
    SendClientMessage(playerid, COLOR_GREY, string);
    }
    if(PlayerInfo[i][pAdmin] == 2002)
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string,sizeof(string),"%s: %s || Nummer: %d",AdminRang(playerid),sendername,PlayerInfo[i][pPnumber]);
    SendClientMessage(playerid, COLOR_GREY, string);
    }
    }
    }
    }
    return 1;
    }