07.05.2012, 12:21
Hello every one
I want Make when map start /Class command Enable for just frist 30 sec its work but It Spam sendClientMessage
Like this
i will show script
I want Make when map start /Class command Enable for just frist 30 sec its work but It Spam sendClientMessage
Like this
Код:
/Class Timer is over /Class Timer is over /Class Timer is over /Class Timer is over /Class Timer is over /Class Timer is over
Код:
new CMDClass[MAX_PLAYERS]; new Timer;
Код:
public NextMap()
{
for(new i;i<MAX_PLAYERS;i++)
{
switch(Map[ID])
{
case 0://map 1
{
SetPlayerWeather(i,0);
SetPlayerTime(i,13,0);
SetPlayerInterior(i,0);
Timer = SetTimer("dissablecmd",30000,false);
TogglePlayerControllable(i, false);
ResetPlayerWeapons(i);
CMDClass[i] = 0;
SetPlayerScore(i, GetPlayerScore(i)+40);
gTeam[i] = TEAM_HUMANS; }
}
}
}
//and others cases
Код:
forward dissablecmd(playerid);
public dissablecmd(playerid)
{
KillTimer(Timer);
CMDClass[playerid] = 1;
SendClientMessageToAll(COLOR_LIGHTBLUE,"/class time is over");
print("/class time is over");
return 1;
}


