If player cheat, send msg only to admins to check
#8

http://imgur.com/YQAO7yy
Look at the pic.
Код:
public OnPlayerCheat(playerid, cheatid, source[])
{
    new elc_str[120],elc_reason[60],elc_name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, elc_name, sizeof(elc_name));
    format(elc_str,sizeof(elc_str),"{F83F3F}MGIG: {C3C3C3}%s mozhebi koristi: ",elc_name);
    switch(cheatid)
    {
        case 1: format(elc_reason,sizeof(elc_reason),"Money Hack( %s $ )",source);
        case 2: format(elc_reason,sizeof(elc_reason),"Weapon Hack ( %s )",source);
        case 3: format(elc_reason,sizeof(elc_reason),"Ammo Hack ( %s kurshumi )",source);
        case 4: format(elc_reason,sizeof(elc_reason),"Ammo Block Hack");
        case 5: format(elc_reason,sizeof(elc_reason),"Speed Hack");
        case 6: format(elc_reason,sizeof(elc_reason),"****** Hack");
        case 7: format(elc_reason,sizeof(elc_reason),"Health/Krv Hack");
        case 8: format(elc_reason,sizeof(elc_reason),"Armor/Pancir Hack");
        case 9: format(elc_reason,sizeof(elc_reason),"Vehicle Spawn Cheat");
        case 10: format(elc_reason,sizeof(elc_reason),"Vehicle Crasher");
    }
    strcat(elc_str,elc_reason);
    //SendClientMessageToAll(0xBD0000FF,elc_str);
foreach(Player, i)
{
    if(PlayerInfo[i][pAdmin] >= 1) //If the player is logged as rcon admin
    {
         SendClientMessage(i, 0xBD0000FF, elc_str); //Send the message to him
    }
}
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 6 Guest(s)