I make an auto event Royal rumble,But the problem is that i want when event started the friendly fire set to be 0(same skin players kill same skin players) for only 5 minutes,after that friendly fire set to be 1(same skin player cannot be able to kill same skin players)...
On gamemodeinit i put this,
[pawn]SetTimer("RoyalRumble",200000,1);[/pawn]
In function i put that,
[pawn]public RoyalRumble()
{
new playerid;
for(new i = 0; i <= MAX_PLAYERS; i++) {
if(IsPlayerConnected(i)) SetPlayerPos(i,-1723.20898,-156.52439,14.86832,0,0);
SetPlayerFriendlyFire(1);
TogglePlayerControllable(playerid, 0);
SetPlayerWeapon(i, 21, 999);
SetPlayerWeapon(i, 23, 999);
SetPlayerWeapon(i, 26, 999);
SendClientMessageToAll(RED,"Event Started Kill every one to Be a winner");
SetTimer( "CountRace1", 1000, 0 );
SetTimer( "CountRace2", 2000, 0 );
SetTimer( "CountRace3", 3000, 0 );
SetTimer( "FinalCountRace", 4000, 0 );
}
return 1;
}[/pawn]
And in final count i put that For Toggle player controllable
[pawn]public FinalCountRace()
{
new plr;
GameTextForAll("==~o~Go ~p~Go! ~x~Go==" );
TogglePlayerControllable(plr, 1);
}[/pawn]
Please Help me....