Timer For Maps
#1

Hello All

How to i can add Timer for all Mapps i have ? Ok Now explain this and i'll edit all maps later

Код:
public OnPlayerSpawn(playerid)
{
	SetPlayerToTeamColor(playerid);

	if(gTeam[playerid] == TEAM_GREEN)
	 {
	    TextDrawShowForPlayer(playerid,Red);
     	TextDrawHideForPlayer(playerid,Blue);
   		SetPlayerTeam(playerid,0);
	}
	else if(gTeam[playerid] == TEAM_BLUE)
	{
    TextDrawShowForPlayer(playerid,Blue);
    TextDrawHideForPlayer(playerid,Red);
   	SetPlayerTeam(playerid,1);

	}

	return 1;
}
Say what code u want and i'll giveu
Reply
#2

What maps? You mean the customly created objects?

Something like this in this case;
Код:
forward LoadMaps();
public LoadMaps()
{
        // put your codes here
        return 1;
}
Then put this into the OnPlayerSpawn, before the return 1; line.
Код:
SetTimerEx("LoadMaps", 1000, false, "ii", playerid, 1);
Reply
#3

Which code i want put ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)