30.10.2010, 07:17
(
Последний раз редактировалось Andy_McKinley; 30.10.2010 в 07:39.
)
They say that the ''42'' make player 42 invinsible for player ''1'' on map with own colour.
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
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;
}
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