[AJUDA] Camera No Hunter ;D
#1

@RESOLVIDO
Reply
#2

Retire o SetPlayerPoss
Reply
#3

Se Retirar o SetPlayerPos Nao Vai Aparece o Hunter Por Causa Do Raio Dos Veiculos
Reply
#4

Seria isso?
https://sampwiki.blast.hk/wiki/LimitPlayerMarkerRadius

#EDIT ou isso:
pawn Код:
CMD:tvp(playerid,params[])
{
    if(PlayerInfo[playerid][Level] < 2)return SendClientMessage(playerid,fail,LEVELF);
    if(isnull(params))return SendClientMessage(playerid,fail,"Uso: /tvp [hunter/rhino/sea/hydra/off]");
    if(!strcmp(params,"hunter",true))
    {
    Escondido[playerid] = true;
    for(new z = 0, w = GetMaxPlayers(); z != w; z++)
    {
        if(PlayerInfo[playerid][Level] > 0) continue;
        SetPlayerMarkerForPlayer(playerid,z, 0xFFFFFFFF);
    }
    SetPlayerCameraPos(playerid,1239.3661,-805.9535,110.9401);
    SetPlayerPos(playerid,1239.3661,-805.9535,-20.0330);
    SetPlayerCameraLookAt(playerid, 1291.2206,-786.4736,77.0330);
    TogglePlayerControllable(playerid,false);
    }
    else if(!strcmp(params,"rhino",true))
    {
    Escondido[playerid] = true;
    for(new z = 0, w = GetMaxPlayers(); z != w; z++)
    {
        if(PlayerInfo[playerid][Level] > 0) continue;
        SetPlayerMarkerForPlayer(playerid,z, 0xFFFFFFFF);
    }
    SetPlayerCameraPos(playerid,-2170.2761,953.9464,111.7996);
    SetPlayerPos(playerid,-2170.2761,953.9464,-20.0330);
    SetPlayerCameraLookAt(playerid, -2186.5146,983.4494,80.0088);
    TogglePlayerControllable(playerid,false);
    }
    else if(!strcmp(params,"sea",true))
    {
    Escondido[playerid] = true;
    for(new z = 0, w = GetMaxPlayers(); z != w; z++)
    {
        if(PlayerInfo[playerid][Level] > 0) continue;
        SetPlayerMarkerForPlayer(playerid,z, 0xFFFFFFFF);
    }
    SetPlayerCameraPos(playerid,-757.9343,2220.5144,68.5085);
    SetPlayerPos(playerid,-757.9343,2220.5144,-20.0330);
    SetPlayerCameraLookAt(playerid, -803.0589,2233.4280,41.4292);
    TogglePlayerControllable(playerid,false);
    }
    else if(!strcmp(params,"hydra",true))
    {
    Escondido[playerid] = true;
    for(new z = 0, w = GetMaxPlayers(); z != w; z++)
    {
        if(PlayerInfo[playerid][Level] > 0) continue;
        SetPlayerMarkerForPlayer(playerid,z, 0xFFFFFFFF);
    }
    SetPlayerCameraPos(playerid,2124.7163,2383.6973,90.4862);
    SetPlayerPos(playerid,2124.7163,2383.6973,-20.0330);
    SetPlayerCameraLookAt(playerid, 2093.0266,2415.1536,75.1315);
    TogglePlayerControllable(playerid,false);
    }
    else if(!strcmp(params,"off",true))
    {
    SetCameraBehindPlayer(playerid);
    SpawnPlayer(playerid);
    TogglePlayerControllable(playerid,true);
    Escondido[playerid] = false;
    for(new z = 0, w = GetMaxPlayers(); z != w; z++)
    {
        if(PlayerInfo[playerid][Level] > 0) continue;
        SetPlayerMarkerForPlayer(playerid,z, ( GetPlayerColor( z ) | 0x000000FF ));
    }
    }
    return 1;
}
Reply
#5

o Que Nao Esta Funcionaodo й O
pawn Код:
SetPlayerMarkerForPlayer
Porque Nao Esconde O Icone Do Cara :S
Reply
#6

Isso nгo escode o нcone do cara, o que escode й isso:
https://sampwiki.blast.hk/wiki/ShowPlayerMarkers
Veja o CODE:
pawn Код:
CMD:tvp(playerid,params[])
{
    if(PlayerInfo[playerid][Level] < 2)return SendClientMessage(playerid,fail,LEVELF);
    if(isnull(params))return SendClientMessage(playerid,fail,"Uso: /tvp [hunter/rhino/sea/hydra/off]");
    if(!strcmp(params,"hunter",true))
    {
    Escondido[playerid] = true;
    ShowPlayerMarkers(0);
    for(new z = 0, w = GetMaxPlayers(); z != w; z++)
    {
        if(PlayerInfo[playerid][Level] > 0) continue;
        SetPlayerMarkerForPlayer(playerid,z, 0xFFFFFFFF);
    }
    SetPlayerCameraPos(playerid,1239.3661,-805.9535,110.9401);
    SetPlayerPos(playerid,1239.3661,-805.9535,-20.0330);
    SetPlayerCameraLookAt(playerid, 1291.2206,-786.4736,77.0330);
    TogglePlayerControllable(playerid,false);
    }
    else if(!strcmp(params,"rhino",true))
    {
    Escondido[playerid] = true;
    ShowPlayerMarkers(0);
    for(new z = 0, w = GetMaxPlayers(); z != w; z++)
    {
        if(PlayerInfo[playerid][Level] > 0) continue;
        SetPlayerMarkerForPlayer(playerid,z, 0xFFFFFFFF);
    }
    SetPlayerCameraPos(playerid,-2170.2761,953.9464,111.7996);
    SetPlayerPos(playerid,-2170.2761,953.9464,-20.0330);
    SetPlayerCameraLookAt(playerid, -2186.5146,983.4494,80.0088);
    TogglePlayerControllable(playerid,false);
    }
    else if(!strcmp(params,"sea",true))
    {
    Escondido[playerid] = true;
    ShowPlayerMarkers(0);
    for(new z = 0, w = GetMaxPlayers(); z != w; z++)
    {
        if(PlayerInfo[playerid][Level] > 0) continue;
        SetPlayerMarkerForPlayer(playerid,z, 0xFFFFFFFF);
    }
    SetPlayerCameraPos(playerid,-757.9343,2220.5144,68.5085);
    SetPlayerPos(playerid,-757.9343,2220.5144,-20.0330);
    SetPlayerCameraLookAt(playerid, -803.0589,2233.4280,41.4292);
    TogglePlayerControllable(playerid,false);
    }
    else if(!strcmp(params,"hydra",true))
    {
    Escondido[playerid] = true;
    ShowPlayerMarkers(0);
    for(new z = 0, w = GetMaxPlayers(); z != w; z++)
    {
        if(PlayerInfo[playerid][Level] > 0) continue;
        SetPlayerMarkerForPlayer(playerid,z, 0xFFFFFFFF);
    }
    SetPlayerCameraPos(playerid,2124.7163,2383.6973,90.4862);
    SetPlayerPos(playerid,2124.7163,2383.6973,-20.0330);
    SetPlayerCameraLookAt(playerid, 2093.0266,2415.1536,75.1315);
    TogglePlayerControllable(playerid,false);
    }
    else if(!strcmp(params,"off",true))
    {
    SetCameraBehindPlayer(playerid);
    SpawnPlayer(playerid);
    TogglePlayerControllable(playerid,true);
    Escondido[playerid] = false;
    ShowPlayerMarkers(0);
    for(new z = 0, w = GetMaxPlayers(); z != w; z++)
    {
        SetPlayerMarkerForPlayer(playerid,z, ( GetPlayerColor( z ) | 0x000000FF ));
    }
    }
    return 1;
}
Reply
#7

PlayerInfo[playerid][Level] й referente a que ?

Quote:
Originally Posted by CidadeNovaRP
Посмотреть сообщение
Isso nгo escode o нcone do cara, o que escode й isso:
Eu jб usei usei SetPlayerMarkerForPlayer com este objetivo
Reply
#8

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
PlayerInfo[playerid][Level] й referente a que ?



Eu jб usei usei SetPlayerMarkerForPlayer com este objetivo
Mas isso nгo tem Lуgica, veja o prуprio nome da funзгo:
SETPlayerMARKERForPLAYER
E a prуpria Wiki diz...
Reply
#9

Quote:
Originally Posted by CidadeNovaRP
Посмотреть сообщение
Mas isso nгo tem Lуgica, veja o prуprio nome da funзгo:
SETPlayerMARKERForPLAYER
E a prуpria Wiki diz...
Se ainda duvida te mostro agora mesmo no meu servidor.
Comando /vertodos, que habilita e desabilita os pontos dos jogadores para o admin que digita o comando.

PS: ShowPlayerMarkers se usa em OnGameModeInit



ReDKiiL, no seu servidor, por padrгo, os jogadores veem uns aos outros? Ou nгo (Semelhante a RP)?
Reply
#10

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
Se ainda duvida te mostro agora mesmo no meu servidor.
Comando /vertodos, que habilita e desabilita os pontos dos jogadores para o admin que digita o comando.

PS: ShowPlayerMarkers se usa em OnGameModeInit
Hmm, eu nгo sabia, como vocк faz para esconder?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)