HBxander - BlockMaker ActionScripts
Why i made this thread?
I made this thread, because i think its usefull, and think alot of new up started scripters, a bit like me, needs some help with it, and so on!
Remember, if your a ' pro ' scripter, like there is alot of people who are in here, then please, stop spamming me, and just let me make my thread..
But tell me to edit, if you fell something is wrong !
Good..
Here there is some
Action Scripts..
<span _mce_style="font-size: small;" style="font-size: small;"><span _mce_style="font-size: x-small;" style="font-size: x-small;">
PHP Code:
ActionDeagle(id, ent)
{
if ( is_user_alive(id) && !g_dgl_used[id] )
{
if ( cs_get_user_team(id) == CS_TEAM_T )
{
if ( !user_has_weapon(id, CSW_DEAGLE) )
{
new property1[33];
new property2[33];
GetProperty(ent, 1, property1);
GetProperty(ent, 2, property2);
g_dgl_used[id] = true;
new name[32];
get_user_name(id, name, 32);
give_item(id, "weapon_deagle");
cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_deagle", id), str_to_num(property1));
cs_set_user_bpammo(id, CSW_DEAGLE, str_to_num(property2));
ColorChat(0, GREEN, "[%s]^x01 Watch Out CTs!^x04'%s'^x01 where given a^x04 Deagle^x01 with^x04 %i^x01 bullets!", name, str_to_num(property1));
}
}
else
{
set_hudmessage(gHudRed, gHudGreen, gHudBlue, gfTextX, gfTextY, gHudEffects, gfHudFxTime, gfHudHoldTime, gfHudFadeInTime, gfHudFadeOutTime, gHudChannel);
show_hudmessage(id, "Only Terrorists can take Deagle!");
}
}
else if ( g_dgl_used[id] )
{
set_hudmessage(gHudRed, gHudGreen, gHudBlue, gfTextX, gfTextY, gHudEffects, gfHudFxTime, gfHudHoldTime, gfHudFadeInTime, gfHudFadeOutTime, gHudChannel);
show_hudmessage(id, "Wait until next round before taking Deagle block again!");
}
}
__________________