16.11.2017, 23:04
if(strcmp(cmd, "/cobertura", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new plo;
plo = ReturnUser(tmp);
if(PlayerInfo[playerid][pAdmin] >= 1)
{
if (GetPlayerState(playerid) == 2)
{
SetPlayerInterior(playerid,GetPlayerInterior(plo)) ;
SetPlayerVirtualWorld(playerid,GetPlayerVirtualWor ld(plo));
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1472.8064,-1788.1499,86.9370);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
else
{
SetPlayerPos(playerid, 1472.8064,-1788.1499,86.9370);
}
SendClientMessage(playerid, COR_CINZA1, " Vocк foi teleportado pelo Admin!");
SetPlayerInterior(playerid,1);
PlayerInfo[playerid][pInt] = 1;
SetPlayerVirtualWorld(playerid,1);
}
else
{
SendClientMessage(playerid, COR_CINZA1, " Vocк nгo estб autorizado a usar o comando!");
}
}
return 1;
}
{
if(IsPlayerConnected(playerid))
{
new plo;
plo = ReturnUser(tmp);
if(PlayerInfo[playerid][pAdmin] >= 1)
{
if (GetPlayerState(playerid) == 2)
{
SetPlayerInterior(playerid,GetPlayerInterior(plo)) ;
SetPlayerVirtualWorld(playerid,GetPlayerVirtualWor ld(plo));
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1472.8064,-1788.1499,86.9370);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
else
{
SetPlayerPos(playerid, 1472.8064,-1788.1499,86.9370);
}
SendClientMessage(playerid, COR_CINZA1, " Vocк foi teleportado pelo Admin!");
SetPlayerInterior(playerid,1);
PlayerInfo[playerid][pInt] = 1;
SetPlayerVirtualWorld(playerid,1);
}
else
{
SendClientMessage(playerid, COR_CINZA1, " Vocк nгo estб autorizado a usar o comando!");
}
}
return 1;
}