SA-MP Forums Archive
[HELP] i tired to make an any special - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] i tired to make an any special (/showthread.php?tid=318415)



[HELP] i tired to make an any special - mature1990 - 15.02.2012

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;
}



Re: [HELP] i tired to make an any special - 2KY - 15.02.2012

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;
    }



Re: [HELP] i tired to make an any special - mature1990 - 15.02.2012

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?


Re: [HELP] i tired to make an any special - mature1990 - 15.02.2012

[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