19.05.2016, 14:32
Hello Guys i already need to know how to add Timer for everymap i have ! ok i send Code for this map
How to add Timer?
PHP код:
public OnPlayerSpawn(playerid)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
SetPlayerColor(playerid, COLOR_GREEN);
GameTextForPlayer(playerid, "~w~Kill the other ~r~players ~W~ in the Skybox", 3000, 4);
new rand = random(sizeof(BattleFieldSpawns));
SetPlayerPos(playerid, BattleFieldSpawns[rand][0], BattleFieldSpawns[rand][1],BattleFieldSpawns[rand][2]);SetPlayerFacingAngle(playerid, BattleFieldSpawns[rand][3]);
TextDrawShowForPlayer(playerid,ArmyO);
SetPlayerHealth(playerid, 10);
SetPlayerArmour(playerid, 0);
SendClientMessage(playerid, COLOR_YELLOW, "If you lost your Jetpack, use /jp to spawn another one!");
return 1;
}