03.02.2012, 12:29
hi guys can some scrept like that time her (if player n checkpoint he stay 30 sec to capture this zone )
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);
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);
}