/rob command
#1

guys please give me /rob command and I just edit it.. I am beginner
Reply
#2

Try this https://sampforum.blast.hk/showthread.php?tid=234561
pawn Код:
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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)