Hi
Im trying to do so those who bought VIP on my server gets 60 cash instead of 40 when the kill someone, and 80 cash instead of 60 for surviving a round.
The code looks like this now
Code:
if( g_Admin[killer] && g_iCash[killer] < 99938 )
{
g_iCash[killer] += 40;
formatex(format_text, sizeof(format_text) - 1, "^x03You recieved 40 cash for killing^x04 %s", vic_name);
}
else
{
g_iCash[killer] += 40;
formatex(format_text, sizeof(format_text) - 1, "^x03You recieved 40 cash for killing^x04 %s", vic_name);
}
//VIP Cash
if ( access( killer, ADMIN_LEVEL_C) )
g_iCash[killer] += 20;
formatex(format_text, sizeof(format_text) - 1, "^x03You recieved 60 cash for killing^x04 %s", vic_name);
But when someone with access "C" kill someone they get 100 cash instead of 60, and when someone without access "C" kill someone they get 40 cash but it says they got 60 cash for killing the player.
Can anyone help me to fix this?