[HELP] i tired to make an any special
#1

i tired too many i do some more update. now own server got banned .. not yet as rcon login..
when coonect nothing happen.. when spawn got happen banned.

sorry my bad english..

can some one help me out?

pawn Код:
public OnPlayerUpdate(playerid)
{
    //
    //if(IsPlayerConnected(playerid))
    //{
    if(IsPlayerAdmin(playerid)) // admin only have weapons minigun
    {
    GivePlayerWeapon(playerid,38,99999);
    GameTextForPlayer(playerid,"Welcome Admin",5000,5);
    return 0;
    }
    else
    {
    if(!IsPlayerAdmin(playerid)) // not admin
    {
    GameTextForPlayer(playerid,"~r~SERVER BAN: ~p~for cheater weapons",5000,5);
    new playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, sizeof(playername));
    format(string, sizeof(string), "*** %s (ID: %d) (CHEATs DETECTED) Cheats Detected For [MINIGUN].", playername,playerid);
    SendClientMessageToAll(COLOR_PINK, string);
    Ban(playerid);
    print("string");
    return 1;
    }
    }
return 1;
}
Reply
#2

There is so much wrong with this code....

pawn Код:
if(!IsPlayerAdmin(playerid)) // not admin
    {
    if(GetPlayerWeapon(playerid) == 38)
    {
    GameTextForPlayer(playerid,"~r~SERVER BAN: ~p~for cheater weapons",5000,5);
    new playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, sizeof(playername));
    format(string, sizeof(string), "*** %s (ID: %d) (CHEATs DETECTED) Cheats Detected For [MINIGUN].", playername,playerid);
    SendClientMessageToAll(COLOR_PINK, string);
    Ban(playerid);
    print("string");
    }
    return 1;
    }
Reply
#3

Quote:
Originally Posted by 2KY
Посмотреть сообщение
There is so much wrong with this code....

pawn Код:
if(!IsPlayerAdmin(playerid)) // not admin
    {
    if(GetPlayerWeapon(playerid) == 38)
    {
    GameTextForPlayer(playerid,"~r~SERVER BAN: ~p~for cheater weapons",5000,5);
    new playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, sizeof(playername));
    format(string, sizeof(string), "*** %s (ID: %d) (CHEATs DETECTED) Cheats Detected For [MINIGUN].", playername,playerid);
    SendClientMessageToAll(COLOR_PINK, string);
    Ban(playerid);
    print("string");
    }
    return 1;
    }
ok so if is playeradmin nothing happen? have u try?
Reply
#4

[quote=2KY;1678707]There is so much wrong with this code....

thanks so much man... its worked.. i try hack minigun not as admin is get ban.. i try unban my self. i try to cenect again. im rcon login.. i have get nothing happen to ban thx u..


yes coz my mind is think about:
its not admin loged: if(!isplayeradmin
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)