Beiträge von Kevin_CaruZo

    Ich habe das so...
    public OnRconLoginAttempt(ip[], password[], success)
    {
    if(!success)
    {
    printf("FAILED RCON LOGIN BY IP %s USING PASSWORD %s",ip, password);
    new stringrcon[200];
    if(IsPlayerConnected(i) && !strcmp(ip, pip, true))
    {
    new name[MAX_PLAYER_NAME];
    new stringrcon[200];
    GetPlayerName(i, name, MAX_PLAYER_NAME);
    format(stringrcon, sizeof(stringrcon), "%s(%s) hat versucht sich ins RCON einzuloggen(BANN IHN)",name,ip);
    format(stringrcon, sizeof(stringrcon), "%s(%s) hat versucht sich ins RCON einzuloggen(BANN IHN)",name,ip);
    format(stringrcon, sizeof(stringrcon), "%s(%s) hat versucht sich ins RCON einzuloggen(BANN IHN)",name,ip);
    ABroadCast(COLOR_RED,stringrcon,1);
    }
    new pip[16];
    for(new i=0; i<MAX_PLAYERS; i++) //Loop through all players
    {
    if(PlayerInfo[i][pAdmin] >= 2000) { }
    else {
    GetPlayerIp(i, pip, sizeof(pip));
    if(!strcmp(ip, pip, true)) //If a player's IP is the IP that failed the login
    {
    SendClientMessage(i, 0xFFFFFFFF, "Das ist nur für Admins! Pech gehabt du Fischbaguette!"); //Send a message
    PlayerInfo[i][pGesperrt] = 1;
    Kick(i);
    }
    }
    }
    if(success) //If the password was correct
    {
    for(new i=0; i<MAX_PLAYERS; i++) //Loop through all players
    {
    new pip[16];
    GetPlayerIp(i, pip, sizeof(pip));
    if(IsPlayerConnected(i) && !strcmp(ip, pip, false)) //If a player's IP is the IP that failed the login
    {
    new name[MAX_PLAYER_NAME];
    new stringrcon[200];
    GetPlayerName(i, name, MAX_PLAYER_NAME);
    printf("%s (%s) hat sich erfolgreich ins Rcon eingeloggt",name,ip);
    format(stringrcon, sizeof(stringrcon), "%s hat sich ins RCON eingeloggt",name);
    ABroadCast(COLOR_RED,stringrcon,1);
    }
    }
    }
    return 1;
    }
    Aber es kommen Errors...
    26 Errors
    Klammer fehler oder so?

    //editIch habe es geschafft danke!

    Aber wenn sich ein Hacker einloggt ins Rcon.
    Und ich nur die IP sehe dann ist es etwas Blöd..
    Weil ich weiß ja nicht, ob das jemand aus dem Admin Team ist oder nicht.


    if(success) //If the password was correct
    {
    for(new i=0; i<MAX_PLAYERS; i++) //Loop through all players
    {
    GetPlayerName(i, pip, sizeof(pip));
    if(!strcmp(ip, pip, true)) //If a player's IP is the IP that failed the login
    {
    printf("%s hat sich erfolgreich ins Rcon eingeloggt",ip);
    new ip[16];
    format(stringrcon, sizeof(stringrcon), "%s hat sich ins RCON eingeloggt",ip);
    ABroadCast(COLOR_RED,stringrcon,1);
    }
    }
    }


    So richtig?

    if(success) //If the password was correct
    {
    for(new i=0; i<MAX_PLAYERS; i++) //Loop through all players
    {
    GetPlayerName(i, name, sizeof(name));
    if(!strcmp(i, name, true)) //If a player's IP is the IP that failed the login
    {
    printf("%s hat sich erfolgreich ins Rcon eingeloggt",name);
    new name[16];
    format(stringrcon, sizeof(stringrcon), "%s hat sich ins RCOn eingeloggt",name);
    ABroadCast(COLOR_RED,stringrcon,1);
    }
    }
    }
    Also ich habe das so, aber ich weiß ncht ob das richtig ist.
    Aber ich habe die befehle mit strcmp und nicht mit ocmd.
    Könntest du mir das verändern auf strcmp?
    //edit

    Hallo liebe Scripter in der Runde.
    Wie kann man Scripten, dass man eine Meldung bekommt, wenn sich jemand als Rcon einloggt.
    Also die Admin sollten eine Meldung bekommen wie z.B. "%s hat sich ins RCON eingeloggt"
    und wenn man Failed sollte es auch anzeigen. "%s hat versucht sich ins RCON einzuloggen"


    Wäre das möglich?


    Mit freundlichen Grüßen,
    Dr.housse

    Hallo liebe Scripter,
    ich habe ein Problem, undzwar ist es das mein Compiler "abkackt" und ich weiß nicht woran das liegen kann.
    Ich habe paar Animationen hinzugefügt.


    Code:


    if(strcmp(cmd, "/blow1", true) == 0)
    {
    LoopingAnim(playerid,"Blowjobz","BJ_COUCH_START_W",4.0,0,0,0,0,0);
    return 1;
    }
    if(strcmp(cmd, "/blow2", true) == 0)
    {
    LoopingAnim(playerid,"Blowjobz","BJ_COUCH_LOOP_W",4.0,0,0,0,0,0);
    return 1;
    }
    if(strcmp(cmd, "/blow3", true) == 0)
    {
    LoopingAnim(playerid,"Blowjobz","BJ_COUCH_END_W",4.0,0,0,0,0,0);
    return 1;
    }
    if(strcmp(cmd, "/blow4", true) == 0)
    {
    LoopingAnim(playerid,"Blowjobz","BJ_COUCH_START_P",4.0,0,0,0,0,0);
    return 1;
    }
    if(strcmp(cmd, "/blow5", true) == 0)
    {
    LoopingAnim(playerid,"Blowjobz","BJ_COUCH_LOOP_P",4.0,0,0,0,0,0);
    return 1;
    }
    if(strcmp(cmd, "/blow6", true) == 0)
    {
    LoopingAnim(playerid,"Blowjobz","BJ_COUCH_END_P",4.0,0,0,0,0,0);
    return 1;
    }
    if(strcmp(cmd, "/blow7", true) == 0)
    {
    LoopingAnim(playerid,"Blowjobz","BJ_STAND_START_W",4.0,0,0,0,0,0);
    return 1;
    }
    if(strcmp(cmd, "/blow8", true) == 0)
    {
    LoopingAnim(playerid,"Blowjobz","BJ_STAND_LOOP_W",4.0,0,0,0,0,0);
    return 1;
    }
    if(strcmp(cmd, "/blow9", true) == 0)
    {
    LoopingAnim(playerid,"Blowjobz","BJ_STAND_END_W",4.0,0,0,0,0,0);
    return 1;
    }
    if(strcmp(cmd, "/blow10", true) == 0)
    {
    LoopingAnim(playerid,"Blowjobz","BJ_STAND_START_P",4.0,0,0,0,0,0);
    return 1;
    }
    if(strcmp(cmd, "/blow11", true) == 0)
    {
    LoopingAnim(playerid,"Blowjobz","BJ_STAND_LOOP_P",4.0,0,0,0,0,0);
    return 1;
    }
    if(strcmp(cmd, "/blow12", true) == 0)
    {
    LoopingAnim(playerid,"Blowjobz","BJ_STAND_END_P",4.0,0,0,0,0,0);
    return 1;
    }
    if(strcmp(cmd, "/blow13", true) == 0)
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    LoopingAnim(playerid,"Blowjobz","BJ_CAR_START_W",4.0,0,0,0,0,0);
    return 1;
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist in keinem Auto!");
    }
    }
    if(strcmp(cmd, "/blow14", true) == 0)
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    LoopingAnim(playerid,"Blowjobz","BJ_CAR_LOOP_W",4.0,0,0,0,0,0);
    return 1;
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist in keinem Auto!");
    }
    }
    if(strcmp(cmd, "/blow15", true) == 0)
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    LoopingAnim(playerid,"Blowjobz","BJ_CAR_END_W",4.0,0,0,0,0,0);
    return 1;
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist in keinem Auto!");
    }
    }
    if(strcmp(cmd, "/blow16", true) == 0)
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    LoopingAnim(playerid,"Blowjobz","BJ_CAR_START_P",4.0,0,0,0,0,0);
    return 1;
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist in keinem Auto!");
    }
    }
    if(strcmp(cmd, "/blow17", true) == 0)
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    LoopingAnim(playerid,"Blowjobz","BJ_CAR_LOOP_P",4.0,0,0,0,0,0);
    return 1;
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist in keinem Auto!");
    }
    }
    if(strcmp(cmd, "/blow18", true) == 0)
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    LoopingAnim(playerid,"Blowjobz","BJ_CAR_END_P",4.0,0,0,0,0,0);
    return 1;
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist in keinem Auto!");
    }
    }
    if(scrcmp(cmd, "Baseball", true) == 0)
    {
    LoopingAnim(playerid,"BASEBALL","BAT_1",4.0,0,0,0,0,0);
    return 1;
    }

    Also ich habe das so gemacht, und es klappt bei mir.


    Das Problem ist ich habe den gleichen Fehler( ich habe mal Copy & Paste gemacht) und es funkt wirklich net.


    Ich habe das hier stehen.




    Hei leute ich habe einen Problem, wenn ich mein Script compile kommen diese Errors und ich weiß das sie zum stremer gehören, aber ich habe den Streamer auch schon auf dem neusten stand...



    C:\Users\Brian\Desktop\GTA SERVER\pawno\include\streamer.inc(167) : error 017: undefined symbol "OBJECT_MATERIAL_SIZE_256x128"
    C:\Users\Brian\Desktop\GTA SERVER\pawno\include\streamer.inc(197) : error 017: undefined symbol "MAPICON_LOCAL"
    C:\Users\Brian\Desktop\GTA SERVER\pawno\include\streamer.inc(242) : error 017: undefined symbol "MAPICON_LOCAL"
    C:\Users\Brian\Desktop\GTA SERVER\gamemodes\GSRScript.pwn(3609) : error 017: undefined symbol "GetVehicleParamsEx"
    C:\Users\Brian\Desktop\GTA SERVER\gamemodes\GSRScript.pwn(3610) : error 017: undefined symbol "SetVehicleParamsEx"
    C:\Users\Brian\Desktop\GTA SERVER\gamemodes\GSRScript.pwn(3608) : warning 203: symbol is never used: "objective"
    C:\Users\Brian\Desktop\GTA SERVER\gamemodes\GSRScript.pwn(3608) : warning 203: symbol is never used: "boot"
    C:\Users\Brian\Desktop\GTA SERVER\gamemodes\GSRScript.pwn(3608) : warning 203: symbol is never used: "bonnet"
    C:\Users\Brian\Desktop\GTA SERVER\gamemodes\GSRScript.pwn(3608) : warning 203: symbol is never used: "doors"
    C:\Users\Brian\Desktop\GTA SERVER\gamemodes\GSRScript.pwn(3608) : warning 203: symbol is never used: "alarm"
    C:\Users\Brian\Desktop\GTA SERVER\gamemodes\GSRScript.pwn(3608) : warning 203: symbol is never used: "lights"
    C:\Users\Brian\Desktop\GTA SERVER\gamemodes\GSRScript.pwn(3608) : warning 203: symbol is never used: "engine"
    C:\Users\Brian\Desktop\GTA SERVER\gamemodes\GSRScript.pwn(4138) : error 017: undefined symbol "RemoveBuildingForPlayer"
    C:\Users\Brian\Desktop\GTA SERVER\gamemodes\GSRScript.pwn(4139) : error 017: undefined symbol "RemoveBuildingForPlayer"
    C:\Users\Brian\Desktop\GTA SERVER\gamemodes\GSRScript.pwn(4140) : error 017: undefined symbol "RemoveBuildingForPlayer"
    C:\Users\Brian\Desktop\GTA SERVER\gamemodes\GSRScript.pwn(4141) : error 017: undefined symbol "RemoveBuildingForPlayer"
    C:\Users\Brian\Desktop\GTA SERVER\gamemodes\GSRScript.pwn(4142) : error 017: undefined symbol "RemoveBuildingForPlayer"
    C:\Users\Brian\Desktop\GTA SERVER\gamemodes\GSRScript.pwn(4143) : error 017: undefined symbol "RemoveBuildingForPlayer"
    C:\Users\Brian\Desktop\GTA SERVER\gamemodes\GSRScript.pwn(4144) : error 017: undefined symbol "RemoveBuildingForPlayer"
    C:\Users\Brian\Desktop\GTA SERVER\gamemodes\GSRScript.pwn(4145) : error 017: undefined symbol "RemoveBuildingForPlayer"
    C:\Users\Brian\Desktop\GTA SERVER\gamemodes\GSRScript.pwn(4146) : error 017: undefined symbol "RemoveBuildingForPlayer"
    C:\Users\Brian\Desktop\GTA SERVER\gamemodes\GSRScript.pwn(4147) : error 017: undefined symbol "RemoveBuildingForPlayer"
    C:\Users\Brian\Desktop\GTA SERVER\gamemodes\GSRScript.pwn(4148) : error 017: undefined symbol "RemoveBuildingForPlayer"
    C:\Users\Brian\Desktop\GTA SERVER\gamemodes\GSRScript.pwn(4149) : error 017: undefined symbol "RemoveBuildingForPlayer"
    C:\Users\Brian\Desktop\GTA SERVER\gamemodes\GSRScript.pwn(4150) : error 017: undefined symbol "RemoveBuildingForPlayer"
    C:\Users\Brian\Desktop\GTA SERVER\gamemodes\GSRScript.pwn(4151) : error 017: undefined symbol "RemoveBuildingForPlayer"
    C:\Users\Brian\Desktop\GTA SERVER\gamemodes\GSRScript.pwn(4152) : error 017: undefined symbol "RemoveBuildingForPlayer"
    C:\Users\Brian\Desktop\GTA SERVER\gamemodes\GSRScript.pwn(4153) : error 017: undefined symbol "RemoveBuildingForPlayer"
    C:\Users\Brian\Desktop\GTA SERVER\gamemodes\GSRScript.pwn(4154) : error 017: undefined symbol "RemoveBuildingForPlayer"
    C:\Users\Brian\Desktop\GTA SERVER\gamemodes\GSRScript.pwn(4155) : error 017: undefined symbol "RemoveBuildingForPlayer"
    C:\Users\Brian\Desktop\GTA SERVER\gamemodes\GSRScript.pwn(4156) : error 017: undefined symbol "RemoveBuildingForPlayer"
    C:\Users\Brian\Desktop\GTA SERVER\gamemodes\GSRScript.pwn(4157) : error 017: undefined symbol "RemoveBuildingForPlayer"
    C:\Users\Brian\Desktop\GTA SERVER\gamemodes\GSRScript.pwn(4158) : error 017: undefined symbol "RemoveBuildingForPlayer"