How do i create this?
#3

Do you use what command processor? Dcmd? Zcmd? or the normal, strcmp?

EDIT:
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 can even use Rajat's code but you must be using the right command processor or maybe it works normally? I'm not good with the new command processors. I'm still old school... XD
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)