Announcement Paintball
#1

Hello !

How can you do when a number of players duel in Paintball occur for all server message like this: "At this time three players he fights in Paintball Arena"

sorry for my English
Reply
#2

first you need to make a way for the player to enter the arena.
lets say with a simple command..
Then make a global variable like this;
pawn Код:
gpaintball

then each time a player makes a command you make the gpaintball variable count like this;

pawn Код:
CMD:(paintball  ( or whatever command you like)
{
    gpaintball++;  // counts gpaintball up..so each time a player uses the command gpaintball will be +1
   
    // now we want a message saying how many players (or actually gpaintball counts)
    new msg[56];
    format(msg,sizeof(msg),"players in paintball: %d",gpaintball);
    SendClientMessageToAll(-1,msg);    //  replace -1 for any color
    return 1;
}
make sure you do gpaintball--; when they leave. (you could do that with another command like /leavepaintball or something)
Reply
#3

To me is just a command. (/ paintball)

And I public StartPaintball and public PaintballEnd.Unde will put messages?
Reply
#4

well..thats your choice where to put it but considering what you stated above the messages should be on startpaintball
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)