14.02.2017, 12:14
Quote:
|
Can you make so we could hide player's name in the TAB? Not just the name in the server query but also the TAB.
|
PHP код:
#define ENABLE_3D_TRYG_TIMELINE_SYNC
#include <YSF>
#include <SAM/3DTryg>
CMD:hideplayer(playerid,params[]){
//admin ?
new userid;
if(sscanf(params,"d",userid)) return SendClientMessage(playerid,COLOR_ERROR,"Użyj: /hideplayer <id>");
TogglePlayerVisibleOnServer(userid,false);
return 1;
}
CMD:showplayer(playerid,params[]){
//admin ?
new userid;
if(sscanf(params,"d",userid)) return SendClientMessage(playerid,COLOR_ERROR,"Użyj: /showplayer <id>");
TogglePlayerVisibleOnServer(userid,true);
return 1;
}
https://sampforum.blast.hk/showthread.php?tid=591010
But it's not just hide the player on the TAB list, but it also hides the client side.
Or use RemovePlayerForPlayer(forplayerid, playerid);

