files
#9

i know but i dont tryed to make a string witk only his name?
Quote:
Originally Posted by Schock
i addet this:
pawn Код:
new namestring[56]
                  GetPlayerWeaponData(i, 7, weapon, ammo);
                if(weapon == 38 && ammo >= 1)
                {
                format(string, sizeof(string), "[Anti Weapon]: %s (id:%d) was kicked cause he is a fucking CHEATER (Minigun) [Time: %02d:%02d:%02d]", GetName(i), i, Hour, Minute, Second);
                SendClientMessageToAll(RED, string);
                format(string, sizeof(namestring), "%s", GetName(i)); // here?
                SendClientMessageToAll(RED, namestring); // here?
                AccountInfo[i][Jail] = 1;
                Kick(i);
                KickLog(string);
                NameLog(namestring);
pawn Код:
forward NameLog(namestring[]);

public NameLog(namestring[])
{
    new entry[256];
    format(entry, sizeof(entry), "%s\n",namestring);
    new File:hFile;
    hFile = fopen("Badnames.cfg", io_append);
    fwrite(hFile, entry);
    fclose(hFile);
}
but if i get a minigun ingame the script kicks me but the server crash
Reply


Messages In This Thread
files - by Schock - 02.03.2009, 15:30
Re: files - by Danut - 02.03.2009, 15:34
Re: files - by Schock - 02.03.2009, 15:53
Re: files - by Danut - 02.03.2009, 15:57
Re: files - by Schock - 02.03.2009, 16:07
Re: files - by Rks25 - 02.03.2009, 16:58
Re: files - by Schock - 02.03.2009, 18:05
Re: files - by Rks25 - 02.03.2009, 18:31
Re: files - by Schock - 02.03.2009, 18:34
Re: files - by Rks25 - 02.03.2009, 18:38

Forum Jump:


Users browsing this thread: 1 Guest(s)