Guest User

Untitled

a guest
Apr 17th, 2013
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. public OnPlayerConnect(playerid)
  2. {
  3. SendClientMessage(playerid, 0xF20707, "Welcome to <Servername> for more info on commands do /help");
  4. SendClientMessage(playerid 0xF20707, "If you have any problems do /report or for any server related questions please do /n");
  5. playersconnected++;
  6. new string[128];
  7. format(string, sizeof(string), "There are currently %d people in the server.", playersconnected);
  8. SendClientMessageToAll(0xF2D707, string);
  9. return 1;
  10. }
  11.  
  12. public OnPlayerDisconnect(playerid, reason)
  13. {
  14. playersconnected--;
  15. new string[128];
  16. format(string, sizeof(string), "There are currently %d people in the server.", playersconnected);
  17. SendClientMessageToAll(0xF2D707, string);
  18. return 1;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment