String
#1

How to make that when player enter /dm 3D text label shows, how many people are in dm zone? I try'ed with strings, but i had many errors and I deleted it..
Reply
#2

Here's a rough idea:
pawn Код:
new Text3D:dmtext;
new PlayerInDM;
//create dmtext at OnGameModeInit()
OnGameModeInit()
{
//other codes
dmtext = Create3DTextLabel("Player: 0",color,X,Y,Z,DD,VW,0);// change x,y,z,dd,vw to your
}
if(strcmp("dm",cmd,true) == 0)
{
new str[12];
PlayerInDM++;//increasing players count on each /dm cmd
format(str,sizeof(str),"Players: %d",PlayerInDM);
Update3DTextLabelText(dmtext,color,str);
}
Note: Wrote it here , never tested it, just check spells or syntex
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)