SA-MP Forums Archive
How To make people 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How To make people Invisible (/showthread.php?tid=185136)



How To make people Invisible - xinix000 - 23.10.2010

other people will not see people who invisible i have some thing like this but it is a vehicle invisible

pawn Код:
if(strcmp(cmd,"/conceal",true)==0)
    {
        if(IsPlayerConnected(playerid))
        {
                new x_nr[256];
                x_nr = strtok(cmdtext, idx);
                if(!strlen(x_nr)) {
                    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /conceal [on/off]");
                    return 1;
                }
                new vehicleid = GetPlayerVehicleID(playerid);
                GetPlayerName(playerid, sendername, sizeof(sendername));
                if(strcmp(x_nr,"on",true) == 0)
                {
                 
                    if(!IsPlayerInAnyVehicle(playerid))
                    {
                        SendClientMessage(playerid,COLOR_GREY,"   you are not in a vehicle!");
                        return 1;
                    }
                    LinkVehicleToInterior(vehicleid, 100);
                    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /conceal [on/off]");
                    format(string, sizeof(string), "* %s turn on invisible", sendername);
                    ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                }
                else if(strcmp(x_nr,"off",true) == 0)
                {
                    LinkVehicleToInterior(vehicleid, GetPlayerInterior(playerid));
                    format(string, sizeof(string), "* %s turn off invisible", sendername);
                    ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                }
        }
        return 1;
    }
can someone change it into a people so people will not get in a car but can invisible


Re: How To make people Invisible - pushingmyluck - 23.10.2010

you can script invisible vehicles i know because i have them also a /hide command so no one can see me or my name tag but invisible people impossible youll probabily get not replys because people dony know how because its not possible