How to make givemoney command
#1

Hi would like to make givemoney command
But i dont have any ideas i want givemoney command was make on strcmp or DCMD or sscanf

Please Help me Guys

Extras:
The Gamemode is near to release
So dont be so hot hot its near!

By [SP]Mr.Kakashi[WP]

Код:
Army of Jerks Has Come Again
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=187229
Reply
#3

Quote:
Originally Posted by Grim_
Посмотреть сообщение
Huh? What is this link?
Do you want me to teleport to this?
Reply
#4

You posted a thread in a section that you are supposed to gain reference and help on completing or beginning a portion of code. That thread is where you ASK for code to be made for you, which is what you're doing right now.

There are also countless filterscript release that contain that command. Not to mention, a few examples on the Wiki. Please use the search feature, it's here for a reason.
Reply
#5

pawn Код:
CMD:givemoney(playerid, params[])
{
    new id, money, string[128], string2[128];
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000AA, "ERROR:You're not an admin.");
    {
        if(sscanf(params,"ii",id,money)) return SendClientMessage(playerid,COLOR_WHITE,"USAGE: /givemoney [ID] [amount]");
        else
            GivePlayerMoney(id,money);
        format(string, sizeof(string),"You have give player %s %d$!", GetName(id), money);
        SendClientMessage(playerid, COLOR_GREY, string);
        format(string2 ,sizeof(string2),"Administrator %s has given you %d$!", GetName(id), money);
        SendClientMessage(id, COLOR_GREY, string2);
    }
    return 1;
}
Reply
#6

not a admin system i mean for players
And you didnt read the description?
I said without using ZCMD
Reply
#7

Well, you were in my server now, lol...and I don't like DCMD or anything other, ZCMD rocks.
Reply
#8

Lol, just convert it!

PHP код:
if(!strcmp(cmdtext"/givecash"true9)) 
    new 
idmoneystring[128], string2[128];
    if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playerid0xFF0000AA"ERROR:You're not an admin.");
    {
        if(
sscanf(params,"ii",id,money)) return SendClientMessage(playerid,COLOR_WHITE,"USAGE: /givemoney [ID] [amount]");
        else
            
GivePlayerMoney(id,money);
        
format(stringsizeof(string),"You have give player %s %d$!"GetName(id), money);
        
SendClientMessage(playeridCOLOR_GREYstring);
        
format(string2 ,sizeof(string2),"Administrator %s has given you %d$!"GetName(id), money);
        
SendClientMessage(idCOLOR_GREYstring2);
    }
    return 
1;

Gimme a rep if its right!
Reply
#9

Quote:
Originally Posted by samtey
Посмотреть сообщение
Lol, just convert it!

PHP код:
if(!strcmp(cmdtext"/givecash"true9)) 
    new 
idmoneystring[128], string2[128];
    if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playerid0xFF0000AA"ERROR:You're not an admin.");
    {
        if(
sscanf(params,"ii",id,money)) return SendClientMessage(playerid,COLOR_WHITE,"USAGE: /givemoney [ID] [amount]");
        else
            
GivePlayerMoney(id,money);
        
format(stringsizeof(string),"You have give player %s %d$!"GetName(id), money);
        
SendClientMessage(playeridCOLOR_GREYstring);
        
format(string2 ,sizeof(string2),"Administrator %s has given you %d$!"GetName(id), money);
        
SendClientMessage(idCOLOR_GREYstring2);
    }
    return 
1;

Gimme a rep if its right!
Dont beg for rep lol, and test it yourself first >.<
Reply
#10

Well, at least I know how to convert it!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)