help with time please (vedio)
#1

hi guys i need help please (my english is bad) so guys i scripte teams and capture the zones but i need capture zone with timer (count) like this vedio so please guys scripte the time( counte in my GM ) and thx for all

PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
  if(
PlayerCP[playerid] != -1) return OnPlayerEnterStreamedCheckpoint(playeridPlayerCP[playerid]);
  return 
1;
}
stock OnPlayerEnterStreamedCheckpoint(playeridCPiD)
{
    if(
CPiD == CPS1)
    {
        
GameTextForPlayer(playerid"Stay her to capture hospital!"30003);
        
SetTimer("count1",30000,30);
        if(
gTeam[playerid]==TEAM_Latino)
        {
        
GangZoneShowForAll(Hospital,0x00F3FFAF);
        
SetPlayerScore(playerid,GetPlayerScore(playerid)+);
        
GivePlayerMoney(playerid,6000);
        
SendClientMessage(playerid,0xFFFFFFFF,"You've capture the zone and receive 500 $ and 5 score");
        
GiveTeamScore(gTeam[playerid]=TEAM_Latino1);
        
SendTeamMessage(COLOR_GREEN"You received 1 Score For a Capture!",TEAM_Latino);
         }
        if(
gTeam[playerid]==TEAM_USA)
        {
        
GangZoneShowForAll(Hospital,0x1400C3FF);
        
SetPlayerScore(playerid,GetPlayerScore(playerid)+);
        
GivePlayerMoney(playerid,6000);
        
SendClientMessage(playerid,0xFFFFFFFF,"You've capture the zone and receive 500 $ and 5 score");
        }
        if(
gTeam[playerid]==TEAM_Arabian)
        {
        
GangZoneShowForAll(Hospital,0xD70000FF);
        
SetPlayerScore(playerid,GetPlayerScore(playerid)+);
        
GivePlayerMoney(playerid,6000);
        
SendClientMessage(playerid,0xFFFFFFFF,"You've capture the zone and receive 500 $ and 5 score");
        }
        if(
gTeam[playerid]==TEAM_Japan)
        {
        
GangZoneShowForAll(Hospital,0xFAFAFFFF);
        
SetPlayerScore(playerid,GetPlayerScore(playerid)+);
        
GivePlayerMoney(playerid,6000);
        
SendClientMessage(playerid,0xFFFFFFFF,"You've capture the zone and receive 500 $ and 5 score");
        }
        if(
gTeam[playerid]==TEAM_Souviet)
        {
        
GangZoneShowForAll(Hospital,0xCA0000FF);
        
SetPlayerScore(playerid,GetPlayerScore(playerid)+);
        
GivePlayerMoney(playerid,6000);
        
SendClientMessage(playerid,0xFFFFFFFF,"You've capture the zone and receive 500 $ and 5 score");
        }
        if(
gTeam[playerid]==TEAM_Europian)
        {
        
GangZoneShowForAll(Hospital,0x005E0089);
        
SetPlayerScore(playerid,GetPlayerScore(playerid)+);
        
GivePlayerMoney(playerid,6000);
        
SendClientMessage(playerid,0xFFFFFFFF,"You've capture the zone and receive 500 $ and 5 score");
        }
  } 
Reply
#2

search for progress bar include it will help u make the textdraw thingy
Reply
#3

thx dude but im suck i want like that

Reply
#4

Didn't you already make a topic about this..?
Reply
#5

dude im no't a good scripter i want just how i do capture zones with timer i do the capture zone but i need with timer becuase if i entred in the checkpoint i capture the zones with eny time so please give just a tutorial enything can help me and thx for all your help
Reply
#6

lke that :
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)