31.10.2011, 22:41
pawn Код:
new Portao;
pawn Код:
public OnFilterScriptInit()
{
Portao = CreateObject(980, -302.13659668, 1506.26147461, 71.13352203, 0.0, 0.0, 342.8113);
return 1;
}
pawn Код:
if(strcmp(cmdtext, "/Abrir", true) == 0)
{
if(!IsPlayerAdmin(playerid) || IsPlayerAdmin(playerid))
{
new Portao = MoveObject(Portao, -302.13659668,1506.26147461,71.13352203, 5.0);
SendClientMessage(playerid, Vermelho, "Vocк abriu o portгo da (Bw 2)");
}
return 1;
}
pawn Код:
if(strcmp(cmdtext, "/Fechar", true) == 0)
{
if(!IsPlayerAdmin(playerid) || IsPlayerAdmin(playerid))
{
new Portao = MoveObject(Portao, -302.13659668,1506.26147461,71.13352203, 5.0);
SendClientMessage(playerid, Vermelho, "Portгo Fechadinho manolo rs");
}
return 1;
}