Hi
I have deathrun shop
but I would like to add item in shop - 'buy life'
thanks =]
PS Here's a piece of script that can give life
Code:
public CmdGiveLifes(id, level, id2)
{
if(get_user_flags(id) & ADMIN_LSET)
{
new s_Name[32], s_Amount[5];
read_argv(1, s_Name, charsmax (s_Name));
read_argv( 2, s_Amount, charsmax(s_Amount));
new i_Target = cmd_target(id, s_Name, 2);
if(!i_Target)
{
client_print(id, print_console, "(!) Player not found");
return PLUGIN_HANDLED;
}
g_Lifes[i_Target] = g_Lifes[i_Target] + max(0, str_to_num(s_Amount));
CmdShowlifes(i_Target);
return PLUGIN_HANDLED;
}
client_print ( id, print_console, "You have no access!" );
return PLUGIN_HANDLED;
}
sorry for my english