Here's Babe if you want a working Code :*
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <engine>
public plugin_init()
{
register_plugin("Rob Player", "1.0", "Natsheh & DannyQueen")
register_clcmd("say", "rob_say")
}
public rob_say(id)
{
new sArgs[34];
read_args(sArgs, charsmax(sArgs));
if(strlen(sArgs) > 32)
return
new player = find_player("ab", sArgs)
if(!player || get_entity_distance(id, player) > 3.0 || id == player)
{
client_print(id, print_chat, "[ Robbing Failed ] Can not find a player near you with that name!")
return
}
else if(!cs_get_user_money(player))
{
client_print(id, print_chat, "[ Robbing Failed ] There is no money to rob from this player!")
return
}
cs_set_user_money(id, cs_get_user_money(id) + cs_get_user_money(player))
cs_set_user_money(player, 0)
}
Sorry i fixed up the code, now the player can not rob himself