 |
|
Member
|

09-01-2020
, 02:51
Re: add message
|
#7
|
Quote:
Originally Posted by fysiks
DJEarthQuake's code is quite wrong but your original code is very close to being correct. Where you currently have "available only to VIP players!" you should put "available from round 2!". Then, you need to add an else case for your access check if statement that says "available only to VIP players!".
PHP Code:
if(get_user_flags(id) & ACCESS_FLAG)
{
if(g_RoundNum >= 2)
{
drop_weapons(id, 1);
IsUserHaveAwp[id] = true;
give_item_ex2(id, "weapon_awp", 30, true, IMPULSE);
}
else
{
client_print(id, print_center, "available only to VIP players!");
}
}
This formatting should make it easier to understand my answer in the first paragraph.
|
what the code should look like, please tell me
|
|
|
|