Hello there!,i was like hmm,i maybe can make so v.i.p gets more money on moneyblock in blockmaker.. ,so i asking u guys if u can help me out with this now BEFORE i will throw my computer out of the window!
this is all i can do:
PHP Code:
ActionMoney(id, ent)
{
if ( cs_get_user_team(id) == CS_TEAM_T )
{
if(get_user_flags(id) & ADMIN_CHAT && ( !g_money_used[id] );
{
new property[5];
GetProperty(ent, 1, property);
mm_add_user_money(id, str_to_num(property) + 10);
g_money_used[id] = true;
set_hudmessage(0, 255, 0, 0.01, 0.18, 0, 0.0, 1.0, 0.25, 0.25, 2);
ColorChat ( 0, GREY, "^x03 You got %i more money!", str_to_num(property) + 10);
emit_sound(id, CHAN_STATIC, g_sound_money, 1.0, ATTN_NORM, 0, PITCH_NORM);
}
else if(!(get_user_flags(id) & ADMIN_CHAT && ( !g_money_used[id] );
{
new property[5];
GetProperty(ent, 1, property);
mm_add_user_money(id, str_to_num(property));
g_money_used[id] = true;
set_hudmessage(0, 255, 0, 0.01, 0.18, 0, 0.0, 1.0, 0.25, 0.25, 2);
ColorChat ( 0, GREY, "^x03 You got %i more money!", str_to_num(property));
emit_sound(id, CHAN_STATIC, g_sound_money, 1.0, ATTN_NORM, 0, PITCH_NORM)
}
else
{
set_hudmessage(0, 255, 0, 0.01, 0.18, 0, 0.0, 1.0, 0.25, 0.25, 2);
show_hudmessage(id, "Only Terrorists can take Money Block!");
}
}
what i need help with is:
when people with flag ADMIN_CHAT going on the block he will get the property on the block + 10 money
i am happy for all help i can get!
Regards StepZ!
__________________