29.08.2014, 15:30
Het Guys
i want to do /rob without (ID/name) ,i mean type /rob to rob the closest player
i have this
please if some on can make it with if(IsPlayerInRangeOfPoint or like that
thanks
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; }
thanks