ABERTO EXERCITO - portaoEXERCITO = CreateObject(971, -1987.5, -709.59997558594, 26.299999237061, 0, 0, 179.49462890625);
FECHADO EXERCITO - portaoEXERCITO = CreateObject(971, -1987.5, -709.59997558594, 33.099998474121, 0, 0, 179.5);
if(strcmp(cmd, "/apext", true) == 0)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(Player[playerid][pLogged] == true)
{
if(Player[playerid][pEXT] >= 1)
{
MoveObject(portaoEXT,-1987.5, -709.599, 26.299,179);
SetTimerEx("FecharPortaoEXT", 5000, 0, "i", playerid);
for(new i=0; i <= MAX_PLAYERS; i++)
if(GetDistanceBetweenPlayers(playerid, i) <= 20)
{
format(string, 256, "* Portгo fecharб em 5 segundos.");
SendClientMessage(i,COR_ROXO,string);
}
}
else
{
SendClientMessage(playerid, COR_ERRO, "Vocк nгo tem permissгo para usar este comando!");
return 1;
}
}
else
{
SendClientMessage(playerid, COR_ERRO, "Vocк tem que estar logado para usar este comando!");
}
return 1;
}
(978 : error 076: syntax error in the expression, or invalid function call (9794) : error 076: syntax error in the expression, or invalid function call (9800) : error 076: syntax error in the expression, or invalid function call (9806) : error 076: syntax error in the expression, or invalid function call (9812) : error 076: syntax error in the expression, or invalid function call (984 : error 021: symbol already defined: "string" |