How to call a function? (+Rep for help)
#9

pawn Код:
forward EndAntiSpawnKill(playerid);
public EndAntiSpawnKill(playerid)
{
        format(Vnewban,32,BanDir,VBPlayer(playerid)); //VBPlayer has to be a string for this to work.
        //EDIT: What is 'BanDir' and what is 'VBPlayer' and 'Vnewban'.
        VBanLoadInfo(playerid,Vnewban);
        new name[MAX_PLAYER_NAME+1];
        GetPlayerName(playerid, name, sizeof(name));
        new string[264];
        new ip[16];
        GetPlayerIp(playerid, ip, sizeof(ip));
        format(string, sizeof(string), "%s [ID: %d] [IP: %s] is suspected of ban evading. (Old Name: %s)", name, playerid, ip, dini_Get(Vnewban,"Nick")); //I want it to show up the old name
        MessageToAdmins(0xFD01FDAA,string);
        printf(string);
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)