added autohud

format fixes
This commit is contained in:
Borja Ferrer
2005-12-02 23:34:11 +00:00
parent 507a901a9e
commit 186728053a
6 changed files with 74 additions and 74 deletions

View File

@ -236,7 +236,7 @@ public sayNextMapTimeLeft(){
new a = get_timeleft()
format(szText, 127, "%s Time Left: %d:%02d", szText, (a / 60) , (a % 60) )
}
client_print(0, print_chat, szText)
client_print(0, print_chat, "%s", szText)
}
public changeMap(szMapName[])

View File

@ -160,7 +160,7 @@ public cmdRandom(id,level,cid) {
case 2: client_print(0,print_chat,"ADMIN %s: random %s",name,name_targ);
case 1: client_print(0,print_chat,"ADMIN: random %s",name_targ);
}
client_cmd(player,g_AutoAssignAck);
client_cmd(player, "%s", g_AutoAssignAck);
}
else {
new cur=0;
@ -197,7 +197,7 @@ public randomStep(index) {
new end = index+5
while (index < end) {
if (g_Team[index] == 0 && !(get_user_flags(index) & ADMIN_IMMUNITY)) {
client_cmd(index,g_AutoAssignAck);
client_cmd(index, "%s", g_AutoAssignAck);
}
if (++index > get_maxplayers()) {
return PLUGIN_HANDLED_MAIN
@ -228,7 +228,7 @@ public cmdReadyRoom(id,level,cid) {
case 2: client_print(0,print_chat,"ADMIN %s: ready room %s",name,name_targ);
case 1: client_print(0,print_chat,"ADMIN: ready room %s",name_targ);
}
client_cmd(player,g_ReadyRoomAck);
client_cmd(player, "%s", g_ReadyRoomAck);
}
else {
new cur=0;
@ -263,7 +263,7 @@ public rrStep(index) {
new end = index+5
while (index < end) {
if (is_user_connected(index) && g_Team[index]!=0) {
client_cmd(index,g_ReadyRoomAck)
client_cmd(index, "%s", g_ReadyRoomAck)
}
if (++index > get_maxplayers()) {
return PLUGIN_HANDLED_MAIN
@ -297,7 +297,7 @@ public cmdTeamTwo(id,level,cid) {
case 2: client_print(0,print_chat,"ADMIN %s: alien %s",name,name_targ);
case 1: client_print(0,print_chat,"ADMIN: alien %s",name_targ);
}
client_cmd(player,g_TeamTwoAck);
client_cmd(player, "%s", g_TeamTwoAck);
}
return PLUGIN_HANDLED_MAIN;
@ -326,7 +326,7 @@ public cmdTeamOne(id,level,cid) {
case 2: client_print(0,print_chat,"ADMIN %s: marine %s",name,name_targ);
case 1: client_print(0,print_chat,"ADMIN: marine %s",name_targ);
}
client_cmd(player,g_TeamOneAck);
client_cmd(player, "%s", g_TeamOneAck);
}
return PLUGIN_HANDLED_MAIN;
@ -339,7 +339,7 @@ public cmdUnComm(id,level,cid) {
return PLUGIN_HANDLED
new comm = UTIL_FindCommander();
if (comm>0&&comm<=get_maxplayers()) {
client_cmd(comm,g_StopCommAck);
client_cmd(comm, "%s", g_StopCommAck);
new name[32],name_targ[32];
new auth[32],auth_targ[32];
get_user_name(id,name,31);

View File

@ -93,7 +93,7 @@ public sayTimeLeft(id){
if ( get_cvar_num("amx_time_voice") ) {
new svoice[128]
setTimeVoice( svoice , 127 , 0 , a )
client_cmd( id , svoice )
client_cmd( id , "%s", svoice )
}
client_print(0,print_chat, "Time Left: %d:%02d", (a / 60) , (a % 60) )
}
@ -219,14 +219,14 @@ public timeRemain(param[]){
if (flags & 1){ // display white text on bottom
setTimeText(arg,127,tmlf)
if (flags & 16) // show/speak if current time is less than this set in parameter
set_hudmessage(255, 255, 255, -1.0, 0.85, 0, 0.0, 1.1, 0.1, 0.5, 1)
set_hudmessage(255, 255, 255, -1.0, 0.85, 0, 0.0, 1.1, 0.1, 0.5, -1)
else
set_hudmessage(255, 255, 255, -1.0, 0.85, 0, 0.0, 3.0, 0.0, 0.5, 1)
show_hudmessage(0,arg)
set_hudmessage(255, 255, 255, -1.0, 0.85, 0, 0.0, 3.0, 0.0, 0.5, -1)
show_hudmessage(0, "%s", arg)
}
if (flags & 2){ // use voice
setTimeVoice(arg,127,flags,tmlf)
client_cmd(0,arg)
client_cmd(0, "%s", arg)
}
}
}