03.02.2012, 21:49
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
Код HTML:
http://www.youtube.com/watch?v=aooGCI27x5Y#
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");
}
}