Fixed some include bugs

Fixed adminslots not showing right slots on connect
Fixed RTEs on wrong team
This commit is contained in:
David Anderson
2004-09-19 00:52:15 +00:00
parent 2e24077b77
commit d14c107db1
4 changed files with 15 additions and 5 deletions

View File

@ -509,6 +509,9 @@ public cmdMenu(id,level,cid){
}
checkRest(id,menu,key){
new team = get_user_team(id)
if (team != 1 && team != 2)
return PLUGIN_HANDLED
if ( g_blockPos[ (menu * 8 + key) + (get_user_team(id) - 1) * 56 ] ){
engclient_cmd(id,"menuselect","10")
client_print(id,print_center, g_Restricted )
@ -659,4 +662,4 @@ public plugin_init() {
format(g_saveFile,63,"%s/weaprest.ini",configsDir)
#endif
loadSettings(g_saveFile)
}
}