16.03.2009, 20:21
I'd like to make it so once a game day every 24 minutes, players on certain teams will get paid and receive a small message informing them. Thanks in advance!
forward message(); |
SetTimer("message",1440000,true); |
public message() { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { new pteam = GetPlayerTeam(i); if(pteam == YOUR TEAM HERE) { SendClientMessage(i, 0xBFC0C200, "You've earned something!"); GivePlayerMoney(i, 8000); } } } } |
Originally Posted by Jack_Fox
This should work:
Quote:
Quote:
Quote:
|