ID 0 problem
#9

Quote:
Originally Posted by PotH3Ad
Посмотреть сообщение
Do you use OnPlayerUpdate? If you do, post it if you can/want to. The problem could probably be coming from there.
yes using
pawn Код:
forward OnPlayerUpdate(playerid);
public OnPlayerUpdate(playerid){
    new name[MAX_PLAYER_NAME];
    new string[128];
    if(IsPlayerConnected(playerid) && AccInfo[playerid][Level] < 1 || AccInfo[playerid][pVip] < 1){
            GetPlayerName(playerid,name, sizeof(name));
            if(GetPlayerWeapon(playerid) == 36 ){
                format(string, sizeof(string), "proking Bot: %s (id: %d) has ben kicked. Reason: Weapon Hack",name,playerid);
                SendClientMessageToAll(COLOR_RUDY,string);
                Kick(playerid);
            }else if(GetPlayerWeapon(playerid) == 37 ){
                format(string, sizeof(string), "proking Bot: %s (id: %d) has ben kicked. Reason: Flamethrower",name,playerid);
                SendClientMessageToAll(COLOR_RUDY,string);
                Kick(playerid);
            }else if(GetPlayerWeapon(playerid) == 38 ){
                format(string, sizeof(string), "proking Bot: %s (id: %d) has ben kicked. Reason: MiniGun",name,playerid);
                SendClientMessageToAll(COLOR_RUDY,string);
                Kick(playerid);
            }
            if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) {
                format(string, sizeof(string), "proking Bot: %s (id: %d) has ben kicked. Reason: Jetpack",name,playerid);
                SendClientMessageToAll(COLOR_RUDY,string);
                Kick(playerid);
            }
        }
    return 1;
}
Reply


Messages In This Thread
ID 0 problem - by MA_proking - 25.07.2011, 05:17
Re: ID 0 problem - by GangsTa_ - 25.07.2011, 05:35
Re: ID 0 problem - by MA_proking - 25.07.2011, 05:43
Re: ID 0 problem - by iggy1 - 25.07.2011, 05:47
Re: ID 0 problem - by DBan - 25.07.2011, 05:50
Re: ID 0 problem - by MA_proking - 25.07.2011, 06:08
Re: ID 0 problem - by PotH3Ad - 25.07.2011, 06:17
Re: ID 0 problem - by RowdyrideR - 25.07.2011, 06:22
Re: ID 0 problem - by MA_proking - 25.07.2011, 06:42
Re: ID 0 problem - by Berky - 25.07.2011, 09:54

Forum Jump:


Users browsing this thread: 1 Guest(s)