// Portгo Tutorial ******* - By BUGVIP //
#include <a_samp>
new Portao;
#define Vermelho 0xFF0000AA
#define Amarelo 0xFFFF00AA
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,71.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,71.13352203, 5.0);
SendClientMessage(playerid, Vermelho, "Portгo Fechadinho manolo rs");
return 1;
}
}
return 0;
}
#include <a_samp>
new Portao;
#define Vermelho 0xFF0000AA
#define Amarelo 0xFFFF00AA
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)) //assim sу poderб abrir o portгo logado na rcon
{
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)) //assim sу poderб abrir o portгo logado na rcon
{
MoveObject(Portao, -302.13659668,1506.26147461,61.13352203, 5.0);
SendClientMessage(playerid, Vermelho, "Portгo Fechadinho manolo rs");
return 1;
}
}
return 0;
}
MoveObject(Portao, -302.13659668,1506.26147461,71.13352203, 5.0); Portao = CreateObject(980, -302.13659668,1506.26147461,71.13352203, 0, 0, 0, 342.8113);
#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..
if(IsPlayerAdmin(playerid))
if(!IsPlayerAdmin(playerid) || IsPlayerAdmin(playerid))
new Portao;
public OnFilterScriptInit()
{
Portao = CreateObject(980, -302.13659668, 1506.26147461, 71.13352203, 0.0, 0.0, 342.8113);
return 1;
}
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;
}
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;
}
#include a_samp
forward
lol();
public lol()
return CreateObject(980, -302.13659668,1506.26147461,71.13352203, 0, 0, 0, 342.8113);
public OnFilterScriptInit()
{
return CreateObject(980, -302.13659668,1506.26147461,71.13352203, 0, 0, 0, 342.8113);
}
public OnPlayerCommandText(playerid,cmdtext[])
{
if(!strcmp(cmdtext,"/portao",true))
{
DestroyObject(0);
return SetTimer("public",5000,false);
}
return 0;
}
pawn Code: new Portao; pawn Code: public OnFilterScriptInit() { Portao = CreateObject(980, -302.13659668, 1506.26147461, 71.13352203, 0.0, 0.0, 342.8113); return 1; } pawn Code: 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 Code: 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; } |