16.01.2014, 03:00
guys please give me /rob command and I just edit it.. I am beginner

CMD:rob(playerid, params[])
{
new str[256], id;
new Float: X, Float: Y, Float: Z;
id = GetClosestPlayerToPlayer(playerid);
GetPlayerPos(id, X, Y, Z);
if(IsPlayerInRangeOfPoint(playerid,2.0,X,Y,Z))
{
new Float: money = GetPlayerMoney(id), Float: moneygot[MAX_PLAYERS];
moneygot[playerid] = money;
format(str, sizeof(str), "ROB: You robbed %d", moneygot[playerid]);
SendClientMessage(playerid, 0xFFFFFFFF, str);
}
return 1;
}