#1

Hello. I need help.

Can anyone make me the command: /rob [ID]. You must be Rank 3 in the organisations.

With this command, you take 10% of a manґs money.

When I rob you, i take you 10% of your money, that you have in the "hand".

The command in strcmp
Reply
#2

anyone pls ?
Reply
#3

EDIT:
Reply
#4

Quote:
Originally Posted by Edin Black
Посмотреть сообщение
anyone pls ?
if u want a rly good fs just ask Faisal_khan he is a very good scriptor and very friendly he does it for $$
Reply
#5

Give me a few moments, and I'll make something quick, which you can expand on.
Reply
#6

Abreezy - okej
Reply
#7

pawn Код:
CMD:rob(playerid, params[])
{
    new string[128], pID;
    if(sscanf(params, "u", pID)) return SendClientMessage(playerid, -1, "Correct usage for command is: /rob playerid");
   
    new cash = GetPlayerMoney(pID);
    new Float:steal =  cash * 0.10;
   
    format(string, sizeof(string), "You have stolen %d from ID %i", floatround(steal), pID);
    SendClientMessage(playerid, -1, string);
   
    GivePlayerMoney(playerid, floatround(steal));
    return 1;
}
This is untested, should be what you wanted, let me know if any errors or whatever.

You need ZCMD and SSCANF btw.
Reply
#8

can you make this in strmcp ??
Reply
#9

anyone ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)