31.10.2011, 21:58
PHP код:
#include <a_samp>
new Portao;
#define Vermelho 0xFF0000AA
#define Amarelo 0xFFFF00AA
tente:
pawn Code:
public OnFilterScriptInit()
{
Portao = CreateObject(980, -302.13659668,1506.26147461,71.13352203, 0, 0, 0, 342.8113);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
//----------------------------
if (strcmp("/abw2", cmdtext, true, 10) == 0)
{
if(!IsPlayerAdmin(playerid))
{
MoveObject(Portao, -302.13659668,1506.26147461,61.13352203, 5.0);
SendClientMessage(playerid, Vermelho, "Vocк abriu o portгo da (Bw 2)");
return 1;
}
}
//----------------------------
if (strcmp("/fbw2", cmdtext, true, 10) == 0)
{
if(!IsPlayerAdmin(playerid))
{
MoveObject(Portao, -302.13659668,1506.26147461,61.13352203, 5.0);
SendClientMessage(playerid, Vermelho, "Portгo Fechadinho manolo rs");
return 1;
}
}
return 0;
}
vocк nгo mudou as coordenadas pro portгo ir..