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)
{
MoveObject(CasaMVIP1, 927.4365, -1615.6812, 13.5657, 0.1, 0.0000, 180.0000, 332.3326);
MoveObject(CasaMVIP1p, 927.5252, -1606.5366, 13.5679, 0.1, 0.0000, 180.0000, 0.3055);
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;
}
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)
{
MoveObject(CasaMVIP1, 927.4365, -1615.6812, 13.5657, 3,0);
MoveObject(CasaMVIP1p, 927.5252, -1606.5366, 13.5679, 3,0);
SetTimerEx("PortaoMVIP1", 10000, 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;
}
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)
{
MoveObject(CasaMVIP1, 927.4365, -1615.6812, 13.5657, 3.0, 0.0000, 180.0000, 332.3326);
MoveObject(CasaMVIP1p, 927.5252, -1606.5366, 13.5679, 3.0, 0.0000, 180.0000, 0.3055);
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;
}
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)
{
MoveObject(CasaMVIP1, 927.4365, -1615.6812, 13.5657, 0.1, 0.0000, 180.0000, 332.3326);
MoveObject(CasaMVIP1p, 927.5252, -1606.5366, 13.5679, 0.1, 0.0000, 180.0000, 0.3055);
SetTimerEx("PortaoMVIP1", 10000, 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;
}
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) { MoveObject(CasaMVIP1, 927.4365, -1615.6812, 13.5657, 0.1, 0.0000, 180.0000, 5.0); // 5 segundos altere para o qual achar melhor MoveObject(CasaMVIP1p, 927.5252, -1606.5366, 13.5679, 0.1, 0.0000, 180.0000, 5.0); //5 segundos altere para o qual achar melhor SetTimerEx("PortaoMVIP1", 10000, false, "i", GateCasaMVIP1); SendClientMessage(playerid,COLOR_LIGHTGREEN,"Contr ole Remoto: Portгo Aberto"); } else SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й dono dessa casa."); return 1; } |