SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 06/02/2010, 10:39 PM   #1
Flake.
High-roller
 
Flake.'s Avatar
 
Join Date: Sep 2009
Location: 1400
Posts: 1,166
Reputation: 132
Default [HELP] Capture the point

my script has 3 teams
TEAM_Rumania
TEAM_USA
TEAM_Rusia and i want to make a capture the checkpoint thing so when the player from any of those teams enters they need to stay in there for 5 seconds then it adds +1 to there team score that i wanted to be displayed via textdraw on the screen always updating and when the limit of 3 wins has been the gamemode changes to the next gamemode

can anyone help please
Flake. is offline  
Old 06/02/2010, 11:38 PM   #2
Flake.
High-roller
 
Flake.'s Avatar
 
Join Date: Sep 2009
Location: 1400
Posts: 1,166
Reputation: 132
Default Re: [HELP] Capture the point

Bump, anyone?
Flake. is offline  
Old 06/02/2010, 11:47 PM   #3
BlackFoX
Huge Clucker
 
Join Date: Dec 2007
Posts: 227
Reputation: 10
Default Re: [HELP] Capture the point

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;
}
BlackFoX is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP! Capture the point! Flake. Help Archive 7 07/02/2010 02:20 AM
[SOLVED] Point in range of point. CaHbKo Help Archive 3 01/02/2010 01:04 PM
Capture the factory Chivava Help Archive 0 23/01/2010 10:22 AM
Vehicle point to point help. osanji Help Archive 3 31/12/2009 01:10 PM
Capture The Car? DeltaAirlines12 Help Archive 3 10/09/2009 11:50 PM


All times are GMT. The time now is 09:51 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.