if(strcmp(cmd, "/นับเวลา",true) == 0)
{
for(new i=0; i < MAX_PLAYERS; ++i)
{
new namep[MAX_PLAYER_NAME];
GetPlayerName(i,namep,sizeof(namep));
format(string,sizeof(string)," %s ได้เริ่มนับเวลาแล้ว ",namep);
SendClientMessageToAll(0xfff0000, string);
new Float:X, Float:Y, Float:Z;
GetPlayerPos(i,X,Y,Z);
PlayerPlaySound(i, 1097, X, Y, Z);
SetTimer("count1", 1000, 1);
SetTimer("count2", 2000, 1);
SetTimer("count3", 3000, 1);
SetTimer("count4", 4000, 1);
SetTimer("count5", 5000, 1);
}
return 1;
} |