AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Ehh Few errors, Need help with them (https://forums.alliedmods.net/showthread.php?t=29261)

Caesar 06-02-2006 01:44

Ehh Few errors, Need help with them
 
I have a few errors with my plugin and if any of you could point them out I would love it


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

public plugin_init()
{
register_plugin("Frag-check", "1.0", "Caesar")
register_event("CurWeapon", "frag_check", "be")
}

public frag_check(id)
{
new frags = get_user_frags(id)
new temp[2], weapon = get_user_weapon(id, temp[0], temp[1])

if(frags >= 20)
{
if(weapon != CSW_HEGRENADE || weapon != CSW_SMOKEGRENADE || weapon != CSW_KNIFE || weapon != CSW_P228 || weapon != CSW_KNIFE || weapon != CSW_XM1014 || weapon != CSW_MAC10 || weapon != CSW_ELITE || weapon != CSW_FIVESEVEN || weapon != CSW_UMP45 || weapon != CSW_USP || weapon != CSW_GLOCK18 || weapon != CSW_MP5NAVY || weapon != CSW_M3 || weapon != CSW_TMP || weapon != CSW_DEAGLE || weapon != CSW_P90)
{
client_print(id, princt_chat, "[AMXX] You have too many kills, don't use the good weapons!")
client_cmd(id, "drop")
}
return 1
}
return 1
}



Sorry I could not get the Code/Small thing to work :(

Caesar 06-02-2006 02:19

Nevermind figured out problem it was just a few typos


All times are GMT -4. The time now is 16:33.

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