//------------------------PORTAO ROUBO DO EXERCITO
if(strcmp(cmd, "/hackear", true) == 0)
{
if(PlayerToPoint(1.0, playerid, 266.92770, 1863.75305, 9.19090))
{
MoveObject( portaorouboexe, 268.83859, 1863.91443, 10.2663,3);
GameTextForPlayer(playerid, "~w~Arsenal ~n~~b~Aberto", 5000, 3);
SetTimer("roubonoexercito1", 300000, false);
}
return true;
}
public roubonoexercito1()
{
MoveObject(portaorouboexe,268.83859, 1863.91443, 7.74320, 2);//PORTAO ROUBO DO EXERCITO Closed
return true;
}
if(strcmp(cmd, "/hackear", true) == 0)
{
if( GetPVarInt( playerid, "TempoComandoW" ) > GetTickCount() ) return SendClientMessage( playerid, -1, "Vocк precisa esperar 1 minuto para usar este comando!" );
SetPVarInt( playerid, "Arsenal", GetTickCount() + 60000 );
if(PlayerToPoint(1.0, playerid, 266.92770, 1863.75305, 9.19090))
{
MoveObject( portaorouboexe, 268.83859, 1863.91443, 10.2663,3);
GameTextForPlayer(playerid, "~w~Arsenal ~n~~b~Aberto", 5000, 3);
SetTimer("roubonoexercito1", 300000, false);
}
return true;
}
if(strcmp(cmd, "/hackear", true) == 0)
{
if( GetPVarInt( playerid, "15000,/hackearW" ) > GetTickCount() ) return SendClientMessage( playerid, -1, "Vocк precisa esperar 1 minuto para usar este comando!" );
SetPVarInt( playerid, "Arsenal", GetTickCount() + 60000 );
if(PlayerToPoint(1.0, playerid, 266.92770, 1863.75305, 9.19090))
{
MoveObject( portaorouboexe, 268.83859, 1863.91443, 10.2663,3);
GameTextForPlayer(playerid, "~w~Arsenal ~n~~b~Aberto", 5000, 3);
SetTimer("roubonoexercito1", 300000, false);
}
return true;
}
if(strcmp(cmd, "/hackear", true) == 0)
{
if(PlayerToPoint(1.0, playerid, 266.92770, 1863.75305, 9.19090))
{
MoveObject( portaorouboexe, 268.83859, 1863.91443, 10.2663,3);
GameTextForPlayer(playerid, "~w~Arsenal ~n~~b~Aberto", 5000, 3);
SetTimerEx("roubonoexercito1", 600000, false, "i", playerid);
}
return 1;
}
forward roubonoexercito1();
public roubonoexercito1()
{
MoveObject(portaorouboexe,268.83859, 1863.91443, 7.74320, 2);//PORTAO ROUBO DO EXERCITO Closed
return 1;
}
|
iFox, Obrigado pela ajuda, mas quando eu digito /hackear o portгo abre normal e nгo espera 60 segundos para abrir e se nгo for pedir muito como eu coloco uma animaзгo que a pessoa fica-ser travado hackeando o botгo!!!
Seria assim, PHP код:
|
if(strcmp(cmd, "/hackear", true) == 0)
{
if( GetPVarInt( playerid, "Arsenal" ) > GetTickCount() ) return SendClientMessage( playerid, -1, "Vocк precisa esperar 1 minuto para usar este comando!" );
SetPVarInt( playerid, "Arsenal", GetTickCount() + 1000*60 );
if(PlayerToPoint(1.0, playerid, 266.92770, 1863.75305, 9.19090)) {
MoveObject( portaorouboexe, 268.83859, 1863.91443, 10.2663,3); GameTextForPlayer(playerid, "~w~Arsenal ~n~~b~Aberto", 5000, 3);
SetTimer("roubonoexercito1", 300000, false);
} return true;
}
|
Don_Speed, continua a mesma coisa, quando eu coloco o comando /hackear no portгo ele abre imediatamente e nгo espera 60 sec para abrir. Nгo sei mas o que editar nesse comando. :S
|
if(strcmp(cmd, "/hackear", true) == 0)
{
if(PlayerToPoint(1.0, playerid, 266.92770, 1863.75305, 9.19090)) return SetTimer("roubonoexercito1", 1000*60, false);
GameTextForPlayer(playerid, "~w~Abrindo", 5000, 3);
} return true;
}
forward roubonoexercito1();
public roubonoexercito1()
{
MoveObject( portaorouboexe, 268.83859, 1863.91443, 10.2663,3); GameTextForPlayer(playerid, "~w~Arsenal ~n~~b~Aberto", 5000, 3);
return true;
}