help with time please (vedio) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help with time please (vedio) (
/showthread.php?tid=315624)
help with time please (vedio) -
BlacKxStory - 03.02.2012
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(playerid, PlayerCP[playerid]);
return 1;
}
stock OnPlayerEnterStreamedCheckpoint(playerid, CPiD)
{
if(CPiD == CPS1)
{
GameTextForPlayer(playerid, "Stay her to capture hospital!", 3000, 3);
SetTimer("count1",30000,30);
if(gTeam[playerid]==TEAM_Latino)
{
GangZoneShowForAll(Hospital,0x00F3FFAF);
SetPlayerScore(playerid,GetPlayerScore(playerid)+5 );
GivePlayerMoney(playerid,6000);
SendClientMessage(playerid,0xFFFFFFFF,"You've capture the zone and receive 500 $ and 5 score");
GiveTeamScore(gTeam[playerid]=TEAM_Latino, 1);
SendTeamMessage(COLOR_GREEN, "You received 1 Score For a Capture!",TEAM_Latino);
}
if(gTeam[playerid]==TEAM_USA)
{
GangZoneShowForAll(Hospital,0x1400C3FF);
SetPlayerScore(playerid,GetPlayerScore(playerid)+5 );
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)+5 );
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)+5 );
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)+5 );
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)+5 );
GivePlayerMoney(playerid,6000);
SendClientMessage(playerid,0xFFFFFFFF,"You've capture the zone and receive 500 $ and 5 score");
}
}
Re: help with time please (vedio) -
jamesbond007 - 03.02.2012
search for progress bar include it will help u make the textdraw thingy
Re : help with time please (vedio) -
BlacKxStory - 03.02.2012
thx dude but im suck

i want like that
Re: help with time please (vedio) -
MP2 - 03.02.2012
Didn't you already make a topic about this..?
Re : help with time please (vedio) -
BlacKxStory - 03.02.2012
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
Re : help with time please (vedio) -
BlacKxStory - 03.02.2012
lke that :