AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Amx_FTS (https://forums.alliedmods.net/showthread.php?t=163565)

Trethy 07-31-2011 17:17

Amx_FTS
 
Hi folks!
Can you guyz help me with this code please?
  • White text
  • Fuck the simon should be red
  • How do i add deagle + he to the numbers?
  • How do i make a script that remove the menu at new round?
  • How do i make so only admins will be able to use "amx_fts"? :S

Please add me at steam if u can help me with more codes!!!.
Steamname:
umadbro000
Thank you! :) :stupid:



PHP Code:

#include <amxmodx>
#include <amxmisc>
#include <fun>

public plugin_init()  {
    
register_plugin("Fuck_the_simon_Menu""1.0""AMXX COMUNITY")
    new 
keys MENU_KEY_0|MENU_KEY_1|MENU_KEY_2
    register_menucmd
(register_menuid("Fuck The Simon"), keys"giveWeapon")
    
register_clcmd("amx_fts""showWeaponMenu")
}

public 
showWeaponMenu(id)
{
    new 
menu[192]
    new 
keys MENU_KEY_0|MENU_KEY_1|MENU_KEY_2
    format
(menu191"Fuck The Simon^n^n1. AK47^n2. M4A1^n3. AWP")
    
show_menu(idkeysmenu)
    return 
PLUGIN_HANDLED
}

public 
giveWeapon(idkey)
{
    if (
key == 0)
    {
         
give_item(id"weapon_ak47")
    } else if (
key == 1) {
         
give_item(id"weapon_m4a1")
    } else if (
key == 2) {
         
give_item(id"weapon_awp")
    } else if (
key == 3) {
    }



fysiks 07-31-2011 17:28

Re: Amx_FTS
 
I already told you the answer to some of these.

Also, I forgot to mention, that you should look in a plugin that has an admin command and see how it's done (to prevent non-admins from using the function) or you can use is_user_admin().

Trethy 07-31-2011 18:56

Re: Amx_FTS
 
Quote:

Originally Posted by fysiks (Post 1522898)
I already told you the answer to some of these.

Also, I forgot to mention, that you should look in a plugin that has an admin command and see how it's done (to prevent non-admins from using the function) or you can use is_user_admin().

Yes, but its not just you on this community.
You can find more ppl. Thanks anyways..


Now i'm waiting for more answers!

fysiks 07-31-2011 22:44

Re: Amx_FTS
 
Quote:

Originally Posted by Trethy (Post 1522963)
Yes, but its not just you on this community.
You can find more ppl. Thanks anyways..


Now i'm waiting for more answers!

Well, do what you can with the information I gave you and then post your updated code. Don't just waste your time waiting for others to reply. The more you are willing to try the more you will get help.

Trethy 08-01-2011 09:29

Re: Amx_FTS
 
But can someone make his code? :(
I tryed but i cant

fysiks 08-01-2011 19:47

Re: Amx_FTS
 
Guess you need to start posting in the requests section.


All times are GMT -4. The time now is 03:31.

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