SA-MP Forums Archive
help with my cmd - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help with my cmd (/showthread.php?tid=611310)



help with my cmd - Stealer - 04.07.2016

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;
}



Re: help with my cmd - Maximun - 04.07.2016

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


Re: help with my cmd - Stealer - 04.07.2016

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


Re: help with my cmd - OmegaKiller72 - 04.07.2016

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


Re: help with my cmd - Stealer - 04.07.2016

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


Re: help with my cmd - OmegaKiller72 - 04.07.2016

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