How To make people Invisible
#1

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
Reply


Messages In This Thread
How To make people Invisible - by xinix000 - 23.10.2010, 14:15
Re: How To make people Invisible - by pushingmyluck - 23.10.2010, 14:20

Forum Jump:


Users browsing this thread: 1 Guest(s)