i got a little question
#1

They say that the ''42'' make player 42 invinsible for player ''1'' on map with own colour.
pawn Код:
//pinvis
    if(strcmp(cmdtext, "/pinvis", true) == 0)
    {
        if(pInvisOn == 0)
            {
            SetPlayerMarkerForPlayer(42, 1, (GetPlayerColor(1) & 0xFFFFFF00));
            for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(playerid, i, false);
            SendClientMessage(playerid, COLOR_YELLOW, "You have dissapeared from the radar and your nametag has been removed.");
            pInvisOn = 1;
       
        }
        else
        {
            SetPlayerMarkerForPlayer(42, 1, (GetPlayerColor(1)));
            for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(playerid, i, true);
            SendClientMessage(playerid, COLOR_YELLOW, "Your blip is now back on the radar and your name tag has appeared back.");
            pInvisOn = 0;
        }
        return 1;
    }
I just want to make a player, when using /pinvis invinsible on map and nametag disappear but keep their own colour. But the samp wiki says otherwise... I don't know if I did right or wrong.

1 thing, i wanted to make this if you type /pinvis your nametag and radarblip will disappear, and when you type it again they will appear again but I really get too much errors so i just ask help then. you can see above what i did but i really think that's not the way
Reply


Messages In This Thread
i got a little question - by Andy_McKinley - 30.10.2010, 07:17
Re: i got a little question - by Retardedwolf - 30.10.2010, 07:59
Re: i got a little question - by Andy_McKinley - 30.10.2010, 08:01
Re: i got a little question - by Retardedwolf - 30.10.2010, 08:04
Re: i got a little question - by Andy_McKinley - 30.10.2010, 08:08
Re: i got a little question - by Retardedwolf - 30.10.2010, 08:17
Re: i got a little question - by Andy_McKinley - 30.10.2010, 08:17
Re: i got a little question - by Retardedwolf - 30.10.2010, 08:29
Re: i got a little question - by Andy_McKinley - 30.10.2010, 08:47
Re: i got a little question - by Retardedwolf - 30.10.2010, 09:09

Forum Jump:


Users browsing this thread: 6 Guest(s)