[HELP] Capture the point
#3

pawn Code:
new playa_time[MAX_PLAYERS]; // Time for Player


SetTimer("player_timer",1000,1); // Add this to OnGameModeInit



// Example...
public player_timer()
{
    for(new i = 0;i<MAX_PLAYERS;i++)
    {
        if(!IsPlayerConnected(i) || IsPlayerNPC(i) || !IsPlayerInRangeOfPoint(i,Rad,X,Y,Z) || playa_time[i]>=5){playa_time[i] = 0;continue;} // Reset Time and Continue
        new _send[32]; // String Array
        playa_time[i]++; // Count Up Timer
        format(_send,sizeof _send,"Stay here %d Sec.",5-playa_time[i]); // Format Message
        GameTextForPlayer(i,_send,1000,3); // Show Message
        if(playa_time[i]>=5)
        {
            // Do Something...
        }
    }
    return 1;
}
Reply


Messages In This Thread
[HELP] Capture the point - by Flake. - 06.02.2010, 22:39
Re: [HELP] Capture the point - by Flake. - 06.02.2010, 23:38
Re: [HELP] Capture the point - by BlackFoX - 06.02.2010, 23:47

Forum Jump:


Users browsing this thread: 1 Guest(s)