01.12.2012, 14:23
pawn Код:
public VerificarPortao()
{
new nome[MAX_PLAYER_NAME], Float:X, Float:Y, Float:Z;
for(new i = 0; i < MAX_PLAYERS; i++)
{
GetPlayerPos(i, X, Y, Z);
GetPlayerName(i, nome, sizeof(nome));
if(PlayerNoRaio(10, -1530.2000, 481.6600, 8.9200, i))
{
if(!strcmp(nome, "jogador1", true) || !strcmp(nome, "jogador2", true) || !strcmp(nome, "jogador3", true))
{
MoveObject(Portao, -1520.2000, 481.6600, 8.9200, 8);
SetTimer("FecharPortao", 8000, true);
}
}
}
return 1;
}