How do i create this?
#5

Quote:
Originally Posted by Rajat_Pawar
Посмотреть сообщение
This is psuedo CODE, I expect you to complete it.
pawn Код:
CMD:rob(playerid)
{
   new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z);
   foreach(new i:Player)
   {
    if(!IsPlayerInRangeOfPoint(i, 5, x, y, z)) continue;
    else
    {
        GivePlayerMoney(playerid, ( GetPlayerMoney(i) / 100 ) * 20 );
        // new st[128]; format(st, 128, "You have robbed %s of $ %d" .. )
        SendClientMessage(playerid, -1, st);
    }
}
}
You made a command which will make the player rob everyone who's near him, that's not what the guy asked. Although that command is useful.
Reply


Messages In This Thread
How do i create this? - by calzo2011 - 01.04.2013, 07:20
Re: How do i create this? - by RajatPawar - 01.04.2013, 07:35
Re: How do i create this? - by Sting. - 01.04.2013, 08:08
Re: How do i create this? - by FunnyBear - 01.04.2013, 08:36
Re: How do i create this? - by Denying - 01.04.2013, 10:43

Forum Jump:


Users browsing this thread: 1 Guest(s)