Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Plugin generated by AMXX-Studio */
- #include AMXMODX.INC
- // TESTING //
- new I_Points[33];
- // TESTING //
- public plugin_init()
- {
- new SZ_WeaponName[32];
- for (new I = CSW_P228; I < CSW_P90; I++)
- {
- if (get_weaponname(I, SZ_WeaponName, charsmax(SZ_WeaponName)))
- {
- // Desechamos el prefijo de la entidad del arma (weapon_)
- register_clcmd(SZ_WeaponName[7], "CLCOMMAND_Weapons");
- }
- }
- }
- public CLCOMMAND_Weapons(const I_Client)
- {
- static SZ_WeaponName[32];
- read_argv(0, SZ_WeaponName, charsmax(SZ_WeaponName));
- // TESTING //
- client_print(I_Client, print_chat, "ARMA SELECCIONADA: ^"%s^"", SZ_WeaponName);
- if (I_Points[I_Client] < 5)
- {
- client_print(I_Client, print_chat, "NO TENES PUNTOS SUFICIENTES :V");
- I_Points[I_Client] += 1
- return PLUGIN_HANDLED;
- }
- return PLUGIN_CONTINUE;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement