AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Does not work properly hidden on JB (https://forums.alliedmods.net/showthread.php?t=162200)

naXe 07-16-2011 05:27

Does not work properly hidden on JB
 
Hi.
I have a problem all night to get tired that was immortal, CT, and TT could not walk after 60 seconds.
I did that dims the map after 60 seconds, and that TT could not move and that they had no weapons, but now it crashes my mistake
The error is that how it all did not get a CT flashlights, weapon, is not immortal and TT can walk.

Here code-seek:
PHP Code:

public cmd_hns_start() {     server_cmd("jb_unblock_weapons")     new Players[32]      new playerCounti      get_players(PlayersplayerCount"ac")      for (i=0i<playerCounti++)      set_lights("a");     {         if (cs_get_user_team(Players[i]) == CS_TEAM_T)         {             set_user_maxspeed(Players[i], 0.01)             set_user_health(Players[i], 100)         }         else         {             give_item(Players[i], "weapon_knife")             current_weapon(Players[i])             set_bit(g_FonarikPlayers[i])             client_cmd(Players[i], "impulse 100")                                       new random_num(0sizeof(_WeaponsFree) - 1)                          give_item(Players[i], _WeaponsFree[j])             cs_set_user_bpammo(Players[i], _WeaponsFreeCSW[j], _WeaponsFreeAmmo[j])             /// give two random guns                          new n = random_num(0, sizeof(_WeaponsFree) - 1)             while (n == j) {                  n = random_num(0, sizeof(_WeaponsFree) - 1)              }                          give_item(Players[i], _WeaponsFree[n])             cs_set_user_bpammo(Players[i], _WeaponsFreeCSW[n], _WeaponsFreeAmmo[n])         }     }     emit_sound(0, CHAN_AUTO, "jbextreme/brass_bell_C.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)          new sz_msg[256];     formatex(sz_msg, charsmax(sz_msg), "^x03%L", LANG_SERVER, "UJBM_MENU_GAME_TEXT_HNS_START")     client_print(0, print_center , sz_msg)          return PLUGIN_CONTINUE }    public  cmd_game_hns() {          g_nogamerounds = 0     g_BoxStarted = 0     jail_open()     g_GameMode = 3     g_SimonAllowed = 0     g_Simon = 0     set_lights("z");               emit_sound(0, CHAN_AUTO, "jbextreme/brass_bell_C.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)     player_hudmessage(0, 2, HUD_DELAY + 1.0, {0, 255, 0}, "%L", LANG_SERVER, "UJBM_MENU_GAME_TEXT_HNS")               set_lights("z");     server_cmd("jb_block_weapons")               new Players[32]      new playerCount, i      get_players(Players, playerCount, "ac")     for (i=0; i<playerCount; i++)      {         strip_user_weapons(Players[i])     }     set_task(60.0,"cmd_hns_start",TASK_GIVEITEMS)          return PLUGIN_CONTINUE } 

Please help
Sorry for my English, but I do not know too much:)

Aykay 07-17-2011 01:58

Re: Does not work properly hidden on JB
 
Use [ php][/php] tags, with lines and indentations.

naXe 07-17-2011 07:46

Re: Does not work properly hidden on JB
 
Okay improved.

With this myself already advised.
A model of how to remove the loading of the Guard (1 +1 Agent Smith (Simon)) and Prisoners (6).
All models are in one single file so. Sub Models

Erox902 07-17-2011 08:23

Re: Does not work properly hidden on JB
 
Seriosly:shock: USE THE "ENTER" KEY!

naXe 07-18-2011 18:42

Re: Does not work properly hidden on JB
 
It is used only here bad encode :)
Paste it into EditPlus example and be with the "Enter"


All times are GMT -4. The time now is 00:59.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.