Timer For Maps - 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: Timer For Maps (
/showthread.php?tid=607602)
Timer For Maps -
RedRex - 21.05.2016
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
Re: Timer For Maps -
iKevin - 21.05.2016
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);
Re: Timer For Maps -
RedRex - 21.05.2016
Which code i want put ?