29.09.2012, 23:31
Bom , esses portхes estгo na posiзгo correta , sendo que quando digita o comando para abrir , por exemplo : /pe ; /pv ; /pr , ele abre sim , mas eu acho que com o grau 90 ° por que ela fica de lado , e quando fecha jб nгo fica reto mais . oq fazer ?
pawn Код:
if(strcmp(cmd, "/pv", true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 248.142105 , 78.125961 , 1003.640625))
{ //GateGaragem
F_MoveObject( PDDOORc, 248.142105 , 78.125961 , 1007.248718,3);
GameTextForPlayer(playerid, "~w~Porta do Vestiario ~n~~b~Aberto", 5000, 3);
SetTimer("pd1", 5000, false);
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo estб perto do portгo ou nгo й um Oficial ");
}
return 1;
}
//----------------------------------{Portoes LS}----------------------------------------
if(strcmp(cmd, "/pe", true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 1545.1932373047, -1623.6568603516, 15.156204223633))
{ //GateGaragem
F_MoveObject( PDGATE, 1544.469,-1628.097, 7.353,3);
GameTextForPlayer(playerid, "~w~Garagem Externa ~n~~b~Aberta", 5000, 3);
SetTimer("pd2", 5000, false);
}
/*else
{
SendClientMessage(playerid, COLOR_RED, "*** Vocк nao esta perto do portao ou nao e PM ***");
}*/
return 1;
}
if(strcmp(cmd, "/pgov", true) == 0)
{
if ((IsAGOV(playerid)) && PlayerToPoint(15.0, playerid, 1539.2235107422, -1838.2176513672, 15.320266723633))
{ //Portao Governo
F_MoveObject( PortaoGov, 1539.2235107422, -1848.2176513672, 15.320266723633,3);
GameTextForPlayer(playerid, "~w~Portao Governo ~n~~b~Aberto", 5000, 3);
SetTimer("PortaoGov2", 5000, false);
}
/*else
{
SendClientMessage(playerid, COLOR_RED, "*** Vocк nao esta perto do portao ou nao e do Governo***");
}*/
return 1;
}
if(strcmp(cmd, "/ppre", true) == 0)
{
if ((IsAGOV(playerid)) && PlayerToPoint(15.0, playerid, 369.15893554688, 162.35037231445, 1028.6030273438))
{ //Portao Governo
F_MoveObject( PortaoPre, 369.15893554688, 162.35037231445, 1030.9030273438,3);
GameTextForPlayer(playerid, "~w~Porta Prefeitura ~n~~b~Aberta", 5000, 3);
SetTimer("PortaoPre2", 5000, false);
}
/*else
{
SendClientMessage(playerid, COLOR_RED, "*** Vocк nao esta perto do portao ou nao e do Governo***");
}*/
return 1;
}