06.04.2012, 15:39
Bom queria saber, como tira os checpoints, que mostra a localizaзгo, e tambйm queria colocar, que so quem estб prуximo le o chat podem me ajudar?
ShowPlayerMarkers(0);
public OnPlayerText(playerid, text[]) {
new Float:p[3], s[128], n[24];
GetPlayerName(playerid, n, 24);
GetPlayerPos(playerid, p[0], p[1], p[2]);
format(s, 128, "%s diz: %s", n, text);
for(new i, j = GetMaxPlayers(); i != j; i++) {
if(IsPlayerInRangeOfPoint(i, 5, p[0], p[1], p[2])) {
SendClientMessage(i, -1, s);
}
}
return false;
}
pawn Код:
|