06.03.2013, 21:14
new gate;
forward timergateclose ();
gate=CreateObject(972,1546.1999511719,-1621.3000488281,12.39999961853,0.0000000,0.0000000 ,180.0000000);
if(strcmp(cmd, "/ad", true) == 0)
{
if(dini_Int(file, "Profissao") == Policial_M || dini_Int(file, "Profissao") == Policial_C || dini_Int(file, "Profissao") == Policial_F || dini_Int(file, "Profissao") == Delegado || dini_Int(file, "Profissao") == Bope || dini_Int(file, "Profissao") == Swat || dini_Int(file, "Profissao") == Narcoticos || dini_Int(file, "Profissao") == FBI || dini_Int(file, "Profissao") == Interpol || dini_Int(file, "Profissao") == LSPD || dini_Int(file, "aAdmin") == 1){
MoveObject(gate,1546.1999511719,-1621.3000488281,04.39999961853,3.0);
SetTimer("timergateclose",10000,false);
GameTextForPlayer(playerid, "~w~Portao~n~~b~Aberto", 5000, 5.0);
}
return 1;
}
public timergateclose ()
{
MoveObject(gate,1546.1999511719,-1621.3000488281,12.39999961853,2)
return 1;
}
}
forward timergateclose ();
gate=CreateObject(972,1546.1999511719,-1621.3000488281,12.39999961853,0.0000000,0.0000000 ,180.0000000);
if(strcmp(cmd, "/ad", true) == 0)
{
if(dini_Int(file, "Profissao") == Policial_M || dini_Int(file, "Profissao") == Policial_C || dini_Int(file, "Profissao") == Policial_F || dini_Int(file, "Profissao") == Delegado || dini_Int(file, "Profissao") == Bope || dini_Int(file, "Profissao") == Swat || dini_Int(file, "Profissao") == Narcoticos || dini_Int(file, "Profissao") == FBI || dini_Int(file, "Profissao") == Interpol || dini_Int(file, "Profissao") == LSPD || dini_Int(file, "aAdmin") == 1){
MoveObject(gate,1546.1999511719,-1621.3000488281,04.39999961853,3.0);
SetTimer("timergateclose",10000,false);
GameTextForPlayer(playerid, "~w~Portao~n~~b~Aberto", 5000, 5.0);
}
return 1;
}
public timergateclose ()
{
MoveObject(gate,1546.1999511719,-1621.3000488281,12.39999961853,2)
return 1;
}
}