27.12.2011, 01:56
cara no meu gm eu uso F_MoveObject e nao F_MoveDynamicObject por exemplo
Nao Sei Se e Nessa ordem mas e assim mas no meu gm funfa de boa assim
Код:
new PGroove; forward portaogroove(); PGroove = F_CreateObject(980,2436.60009766,-1659.50000000,15.10000038,0.00000000,0.00000000,90.00000000); //object(airportgate) if((newkeys == KEY_HORN) && (IsPlayerInAnyVehicle(playerid))) if(IsAGroove(playerid)) { OnPlayerCommandText(playerid,"/pgroove"); } } return 0; } public portaogroove() { F_MoveObject(PGroove, 2436.60009766,-1659.50000000,15.10000038, 2);//GaragemClosed return 1; } if(strcmp(cmd, "/pgroove", true) == 0) { if ((PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15) && PlayerToPoint(15.0, playerid, 2436.5,-1658.8000488281,21.10000038147)) { //Portao Groove F_MoveObject( PGroove, 2436.5,-1658.8000488281,21.10000038147,3); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s Abriu Este Portao!", sendername); ProxDetector(4.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GameTextForPlayer(playerid, "~g~Aberto", 5000, 3); SetTimer("portaogroove", 5000, false); } else { //SendClientMessage(playerid, COLOR_RED, "*** Voce nao esta perto do portao ou nao e PM ***"); } return 1; }