/rob closest player help
#1

Het Guys
i want to do /rob without (ID/name) ,i mean type /rob to rob the closest player
i have this
Код:
CMD:rob(playerid, params[])
{
	
    if  (sscanf( params, "r", ID )) SendClientMessage(playerid, 0xFF000AA, "Use: /rob [ID]");
    else if (ID == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF000AA,"invalid Player ....");
    else if(ID == playerid) SendClientMessage(ID, 0xFF0000AA, "ERROR : You cant rob yourself!");
    return 1;
}
please if some on can make it with if(IsPlayerInRangeOfPoint or li
ke that

thanks
Reply


Messages In This Thread
/rob closest player help - by AmirRFCNR - 29.08.2014, 15:30
Re: /rob closest player help - by Thogy - 29.08.2014, 15:42
Re: /rob closest player help - by BroZeus - 29.08.2014, 15:43
Re: /rob closest player help - by Stinged - 29.08.2014, 15:44
Re : /rob closest player help - by AmirRFCNR - 29.08.2014, 21:58
Re: /rob closest player help - by Noliax8 - 29.08.2014, 22:57
Re : /rob closest player help - by AmirRFCNR - 30.08.2014, 14:52
Re: /rob closest player help - by Lukka_Vercetti - 30.08.2014, 15:46
Re : Re: /rob closest player help - by AmirRFCNR - 30.08.2014, 16:23
Re: /rob closest player help - by Lukka_Vercetti - 30.08.2014, 16:29

Forum Jump:


Users browsing this thread: 2 Guest(s)