25.07.2012, 18:01
pawn Код:
if(dini_Int(file2, "DM") == 1){
new plid;
for(new i; i != MAX_PLAYERS; i++){
if(IsPlayerConnected(plid)) continue;
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), P_CONTAS, aname);
GameTextForPlayer(plid,"~b~PRESO", 5000, 0);
SetPlayerPos(plid, 263.8820,77.4002,1001.0391);
SetPlayerInterior(plid, 6);
SetPlayerHealth(plid, 99999);
ResetPlayerWeapons(plid);
dini_IntSet(file2, "Preso", 1);
format(string, sizeof(string), "{2F7AFC} | PRISГO | %s matou %s fora da бrea de DM e foi preso automaticamente!", kname, aname,playerid);
SendClientMessageToAll(-1, string);
}
}
return 1;
}
Nгo, pois estб enviando a mensagem para todos do servidor e, nгo apenar para o player.

