new Float:Teleporte[MAX_PLAYERS][2];
if(strcmp(cmd, "/cornocity", true) == 0)
{
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1, "[!] Vocк nгo estб Conectado!");
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "[!] Vocк nгo estб autorizado a usar este comando!");
if (GetPlayerState(playerid) == 2)
{
new veiculo = GetPlayerVehicleID(playerid);
SetVehiclePos(veiculo, 0.0,0.0,0.0);
LinkVehicleToInterior(veiculo, 0x0);
Teleporte[playerid][0] = 0.0;
Teleporte[playerid][1] = 0.0;
}
else return SetPlayerPos(playerid, 0.0,0.0,0.0);
SendClientMessage(playerid, -1, "Vocк foi teleportado para Corno's Of City!");
SetPlayerInterior(playerid, 0x0);
SetPlayerVirtualWorld(playerid, 0x0);
return 1;
}
if(strcmp(cmd, "/trazer", true) == 0)
{
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1, "[!] Vocк nгo estб Conectado!");
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "[!] Vocк nгo estб autorizado a usar este comando!");
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "USE: /trazer [id]");
new Float:playertrazidocx,Float:playertrazidoy,Float:playertrazidoz;
new playertrazido, mundo;
playertrazido = ReturnUser(tmp);
mundo = GetPlayerVirtualmundo(playerid);
if (!IsPlayerConnected(playertrazido)) return SendClientMessage(playerid, -1, "[!] O Player nгo estб conectado!");
if(playertrazido != INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "[!] Vocк nгo pode trazer vocк!");
GetPlayerPos(playerid, playertrazidox, playertrazidoy, playertrazidoz);
if (GetPlayerState(playertrazido) == 2)
{
Teleporte[playertrazido][0] = 0.0;
Teleporte[playertrazido][1] = 0.0;
new veiculo = GetPlayerVehicleID(playertrazido);
SetVehiclePos(veiculo, playertrazidox, playertrazidoy+4, playertrazidoz);
LinkVehicleToInterior(veiculo, 0);
SetVehicleVirtualmundo(veiculo,mundo);
}
else return SetPlayerPos(playertrazido,playertrazidox,playertrazidoy+2, playertrazidoz);
SetPlayerVirtualmundo(playertrazido,mundo);
SendClientMessage(playertrazido, -1, "Vocк foi teleportado pelo Admin !");
return 1;
}
if(strcmp(cmd, "/ir", true) == 0)
{
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1, "[!] Vocк nгo estб Conectado!");
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "[!] Vocк nгo estб autorizado a usar este comando!");
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, -1, "USE: /ir [id]");
new Float:playertrazidocx,Float:playertrazidocy,Float:playertrazidocz;
new playertrazido, mundo;
playertrazido = ReturnUser(tmp);
mundo = GetPlayerVirtualmundo(playertrazido);
if (!IsPlayerConnected(playertrazido)) return SendClientMessage(playerid, -1, "[!] O Player nгo estб conectado!");
if(playertrazido != INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "[!] Vocк nгo pode trazer vocк!");
GetPlayerPos(playertrazido, playertrazidocx, playertrazidocy, playertrazidocz);
if (GetPlayerState(playerid) == 2)
{
new veiculo = GetPlayerVehicleID(playerid);
SetVehiclePos(veiculo, playertrazidocx, playertrazidocy+4, playertrazidocz); LinkVehicleToInterior(veiculo, 0);
Teleporte[playerid][0] = 0.0;
Teleporte[playerid][1] = 0.0;
}
else return SetPlayerPos(playerid,playertrazidocx,playertrazidocy+2, playertrazidocz);
SetPlayerVirtualmundo(playerid, mundo);
SendClientMessage(playerid, -1, "Vocк foi teleportado pelo Admin!");
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
GetPlayerName(playertrazido, plname, MAX_PLAYER_NAME);
return 1;
}
USAAAAAAAAAA SEEEEEAAAAAARRRRRRRCCCCCCCHHHHHHHH POOOOOOWWW
CACETE... TEM MUITOS VADIOS POR AQUI NЙ? MINHA NOSSA |
TEM MUITOS VADIOS POR AQUI NЙ? |