PHP Code:
/*=====================================================
First Writes
=====================================================*/
public Firstwrites(id)
{
if(!is_user_admin(id))
{
ColorChat(id, RED, "^4You have no access to that command")
return PLUGIN_HANDLED
}
// Random in Normal Color
switch(random_num(0,2))
{
case 0: set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 4.5, 4.5) // red
case 1: set_hudmessage(0, 255, 0, -1.0, -1.0, 0, 4.5, 4.5) // green
case 2: set_hudmessage(0, 0, 255, -1.0, -1.0, 0, 4.5, 4.5) // blue
}
show_hudmessage(0, "The First writes will started in 5 seccond")
set_task(5.0, "ActionFirstwrites")
return PLUGIN_HANDLED
}
public ActionFirstwrites()
{
// Random in Normal Color
switch(random_num(0,3))
{
case 0: set_hudmessage(255, 0, 0, -1.0, 0.42) // red
case 1: set_hudmessage(0, 255, 0, -1.0, 0.42) // green
case 2: set_hudmessage(0, 0, 255, -1.0, 0.42) // blue
case 3: set_hudmessage(255, 255, 255, -1.0, 0.42) // white
}
switch(random_num(0,4))
{
case 0: {
show_hudmessage(0, "The First writes ^" %d ^" moves to CT Team", random_num(0,9))
}
case 1: {
show_hudmessage(0, "The First writes ^" %d%d ^" moves to CT Team", random_num(0,9), random_num(0,9))
}
case 2: {
show_hudmessage(0, "The First writes ^" %d%d%d ^" moves to CT Team", random_num(0,9), random_num(0,9), random_num(0,9))
}
case 3: {
show_hudmessage(0, "The First writes ^" %d%d%d%d ^" moves to CT Team", random_num(0,9), random_num(0,9), random_num(0,9), random_num(0,9))
}
case 4: {
show_hudmessage(0, "The First writes^" %d%d%d%d%d ^" moves to CT Team", random_num(0,9), random_num(0,9), random_num(0,9), random_num(0,9), random_num(0,9))
}
}
return PLUGIN_HANDLED
}
I want First Writes The random word Automatic move to CT team