/giverank
#6

Put this on top of your script
pawn Код:
#include <a_samp>
#include <zcmd>
#include <sscanf2>
You could put this on the bottom of your script.
pawn Код:
COMMAND:givescore(playerid, params[]){
    new target, score; // Defining the target and the score you want to give
    if(sscanf(params, "ud", target, params)){ // Checks if you typed everything in the right order. ( Target first and the amount of score you wish to give)
        SendClientMessage(playerid, 0xFFFFFFFF, "/givescore [target] [score]"); // Sends this message if you didn't typ it in the right order.
        return 1; // returns so the command doesen't execute when you type in the wrong order.
    }
    SetPlayerScore(target, score); // Sets the target to the selected score.
    return 1;
}
Reply


Messages In This Thread
/giverank - by Blackazur - 26.09.2012, 16:31
Re: /giverank - by ikbenremco - 26.09.2012, 16:35
AW: /giverank - by Blackazur - 26.09.2012, 17:57
Re: AW: /giverank - by HyDrAtIc - 26.09.2012, 17:59
AW: /giverank - by Blackazur - 26.09.2012, 18:05
Re: /giverank - by Sasoft - 26.09.2012, 18:11
Re: /giverank - by SmithyComp - 26.09.2012, 18:14
Re: /giverank - by HyDrAtIc - 26.09.2012, 18:15
Re: /giverank - by RedJohn - 26.09.2012, 18:18
Re: /giverank - by Sasoft - 26.09.2012, 18:20

Forum Jump:


Users browsing this thread: 1 Guest(s)