/invisible
#1

Well ya the title says it all, is it possible to make it like if player does a /invisible zcmd command, then the player marker will be invisible, but when he does type in chat he is black, and when he enters a car it is invisible. Is it possible, if yes how?
Bad explained, lemem try again

When he do the command /invisible, his playermarker will be invisible in map, but in chat it will just be black, and the players i just visible as it shall be, but if possible make player invisible too and when he enteres a car it will be invisible

Well got any ideas?
Reply
#2

https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer
Reply
#3

making a invisible car isnt possible..
to set a player invisible (on radar)
pawn Код:
CMD:invisible(playerid, params[])
{
SetPlayerColor(playerid,0x00000000); // that will make him invisible and black on chat
}
Reply
#4

To make a vehicle invisble

pawn Код:
new veh = GetPlayerVehicleID(playerid);
LinkVehicleToInterior(veh,1);
SetPlayerInterior(playerid,0);
Should work, untested.
Reply
#5

As taken from a filterscript:
PHP код:
dcmd_invisible(playerid,params[])
{
    
#pragma unused params
    
if(AccInfo[playerid][Level] >= 3)//level 3
    
{
        if(
AccInfo[playerid][Hide] == 0)
        {
            
pColor GetPlayerColor(playerid);
            
SetPlayerColor(playerid0xFFFFFF00);
               
GameTextForPlayer(playerid"~w~Invisible!",2500,3);
               
AccInfo[playerid][Hide] = 1;
               if(
GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
               {
                   new 
int1 GetPlayerInterior(playerid);
                   
LinkVehicleToInterior(GetPlayerVehicleID(playerid),int1+1);
            }
            return 
1;
        }
        else return 
SendClientMessage(playeridlightred,"ERROR: You are already Invisible!");
    }
    else return  
ErrorMessages(playerid1);

Reply
#6

is it possible to make player invisible too?
Reply
#7

Quote:
Originally Posted by CrazyChoco
Посмотреть сообщение
is it possible to make player invisible too?
No...not yet at least.
Reply
#8

umm okai :P anyway thanks, but i know this might sounds crazy, but how can i do it like:

if he do /eject, a black nrg will be spawned right infront of him, and he will be exited of the previous vehicle, and will be auto entered in the nrg?
Reply
#9

OnPlayerExitVehicle
GetVehicleId
PutPlayerInVehicle
CreateVehicle
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)