help with my cmd
#1

hello i need help with my cmd i can't fix it its bug when i use /advisible it just don't visible me people can still see me can someone fix this cmd for me? some help please? i appreciate the help

Код:
COMMAND:adinvisible(playerid,params[])
{
	if(PlayerInfo[playerid][pAdminlevel] > 0)
	{
		if(PlayerInfo[playerid][pHiding] == 0)
		{
		    PlayerInfo[playerid][pvColor] = GetPlayerColor(playerid);
			SetPlayerColor(playerid, 0xFFFFFF00);
   			GameTextForPlayer(playerid, "~n~~n~~n~~n~~g~Invisible!",2500,3);
   			PlayerInfo[playerid][pHiding] = 1;

   			if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
   			{
   	    		new Int1 = GetPlayerInterior(playerid);
   	    		LinkVehicleToInterior(GetPlayerVehicleID(playerid),Int1+1);
    		}
    		return 1;
		}
		else SendClientMessage(playerid, COLOR_ERROR,"You are Already Invisible.");
	}
	else SendClientMessage(playerid,COLOR_ERROR,""ERROR_MSG"");
	return 1;
}
Код:
COMMAND:advisible(playerid,params[])
{
	if(PlayerInfo[playerid][pAdminlevel] > 0)
	{
		if(PlayerInfo[playerid][pHiding] == 1)
		{
			SetPlayerColor(playerid, PlayerInfo[playerid][pvColor]);
   			GameTextForPlayer(playerid, "~n~~n~~n~~n~~b~Visible!",2500,3);
   			PlayerInfo[playerid][pHiding] = 0;
   			if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
   			{
   	    		new Int1 = GetPlayerInterior(playerid);
   	    		LinkVehicleToInterior(GetPlayerVehicleID(playerid),Int1);
   			}
   			return 1;
		}
		else SendClientMessage(playerid, COLOR_ERROR,"You are Already Visible.");
	}
	else SendClientMessage(playerid,COLOR_ERROR,""ERROR_MSG"");
	return 1;
}
Reply
#2

It's normally, there's no function which will hide you around people in cmd /adinvisible
Reply
#3

there is no way to hide myself with this cmd? sorry im very new to scripting
Reply
#4

i knew 1 bug. if player start to kill you with knife, at this moment when plays death animation, you need to teleport somewhere, to get out from streaming radius, than you can walk around other players and they wount see you, but your body will still lie down at kill place
Reply
#5

Quote:
Originally Posted by OmegaKiller72
Посмотреть сообщение
i knew 1 bug. if player start to kill you with knife, at this moment when plays death animation, you need to teleport somewhere, to get out from streaming radius, than you can walk around other players and they wount see you, but your body will still lie down at kill place
yes i know about that knife bug. but can't we invisible ourself with a cmd? or just hide our self from minimap by a cmd? if u know tell me please
Reply
#6

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


Forum Jump:


Users browsing this thread: 1 Guest(s)