18.07.2009, 10:32
pawn Код:
public OnPlayerConnect(playerid)
{
new PlayerName[MAX_PLAYER_NAME];
new File:file;
new string[128];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "[GTA]");
if(strcmp(PlayerName, string, true) == 0)
{
fwrite(file, PlayerName);
return 1;
}
fclose(file);
return 1;
}