/invisible - 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: /invisible (
/showthread.php?tid=374970)
/invisible -
CrazyChoco - 04.09.2012
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?
Re: /invisible -
mobiliz - 04.09.2012
https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer
Re: /invisible -
MarkoN - 04.09.2012
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
}
Re: /invisible -
C00K13M0N$73R - 04.09.2012
To make a vehicle invisble
pawn Код:
new veh = GetPlayerVehicleID(playerid);
LinkVehicleToInterior(veh,1);
SetPlayerInterior(playerid,0);
Should work, untested.
Re: /invisible -
ThePhenix - 04.09.2012
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(playerid, 0xFFFFFF00);
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(playerid, lightred,"ERROR: You are already Invisible!");
}
else return ErrorMessages(playerid, 1);
}
Re: /invisible -
CrazyChoco - 04.09.2012
is it possible to make player invisible too?
Re: /invisible -
TheArcher - 04.09.2012
Quote:
Originally Posted by CrazyChoco
is it possible to make player invisible too?
|
No...not yet at least.
Re: /invisible -
CrazyChoco - 04.09.2012
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?
Re: /invisible -
C00K13M0N$73R - 04.09.2012
OnPlayerExitVehicle
GetVehicleId
PutPlayerInVehicle
CreateVehicle