Maybe this makes you understand what I want.
The code:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <xs>
#include <core>
#include <fun>
case OBJECT_AWPBLOCK:
{
static Float:lastTouched[33];
if ( get_gametime() - lastTouched[plr] > 50.0 )
{
give_item(plr, "weapon_awp");
set_hudmessage(255, 0, 0, 0.05, 0.65, 0, 2.0, 2.0, 0.5, 0.1, -1);
show_hudmessage (plr, "YOU WON AN AWP WITH 1 BULLET!");
lastTouched[plr] = get_gametime();
}
}
}
}
Anyone can edit the player so to get a round of AWP, and with only one bullet?