if(strcmp(cmd, "/pmansao", true) == 0)
{
if(!PlayerToPoint(14.0, playerid, 927.1511,-1611.2917,13.5469)) {
return true;
}
GetPlayerName(playerid, playername, sizeof(playername));
if (PlayerInfo[playerid][pPHousekey] == 1 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPHousekey]][hOwner]) == 0)
{
MoveDynamicObject(CasaMVIP1, 927.4365, -1615.6812, 13.5657, 0.1, 0.0000, 180.0000, 357.2552);
MoveDynamicObject(CasaMVIP1p, 927.5252, -1606.5366, 13.5679, 0.1, 0.0000, 180.0000, 358.1987);
SetTimerEx("PortaoMVIP1", 5000, false, "i", GateCasaMVIP1);
SendClientMessage(playerid,COLOR_LIGHTGREEN,"Controle Remoto: Portгo Aberto");
}
else SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й dono dessa casa.");
return 1;
}
MoveDynamicObject(CasaMVIP1, 927.4365, -1615.6812, 13.5657, 0.1, 0.0000, 180.0000, 0.5);
MoveDynamicObject(CasaMVIP1p, 927.5252, -1606.5366, 13.5679, 0.1, 0.0000, 180.0000, 0.5);
MoveDynamicObject(objectid, Float:X, Float:Y, Float:Z, Float:Speed, Float:RotX = -1000.0, Float:RotY = -1000.0, Float:RotZ = -1000.0)
if(strcmp(cmd, "/pmansao", true) == 0) { if(!PlayerToPoint(14.0, playerid, 927.1511,-1611.2917,13.5469)) { return true; } GetPlayerName(playerid, playername, sizeof(playername)); if (PlayerInfo[playerid][pPHousekey] == 1 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPHousekey]][hOwner]) == 0) { MoveDynamicObject(CasaMVIP1, 927.4365, -1615.6812, 13.5657, 0.1, 0.0000, 180.0000, 357.2552); MoveDynamicObject(CasaMVIP1p, 927.5252, -1606.5366, 13.5679, 0.1, 0.0000, 180.0000, 358.1987); SetTimer("PortaoMVIP1", 5000, false); SendClientMessage(playerid,COLOR_LIGHTGREEN,"Controle Remoto: Portгo Aberto"); } else SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й dono dessa casa."); return 1; }
if(strcmp(cmd, "/pmansao", true) == 0) { if(!PlayerToPoint(14.0, playerid, 927.1511,-1611.2917,13.5469)) { return true; } GetPlayerName(playerid, playername, sizeof(playername)); if (PlayerInfo[playerid][pPHousekey] == 1 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPHousekey]][hOwner]) == 0) { MoveDynamicObject(CasaMVIP1,927.4365,-1615.6812,13.5657,3); MoveDynamicObject(CasaMVIP1p,927.5252,-1606.5366,13.5679,3); SetTimer("PortaoMVIP1", 5000, false); SendClientMessage(playerid,COLOR_LIGHTGREEN,"Controle Remoto: Portгo Aberto"); } else SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й dono dessa casa."); return 1; }
Dк uma pequena movida no portгo tambйm (й imperceptнvel), nas coordenadas e na rotaзгo, assim creio que irб funcionar...
|