How to make givemoney command -
lyrics - 14.08.2011
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
Re: How to make givemoney command -
Grim_ - 14.08.2011
https://sampforum.blast.hk/showthread.php?tid=187229
Re: How to make givemoney command -
lyrics - 14.08.2011
Quote:
Originally Posted by Grim_
|
Huh? What is this link?
Do you want me to teleport to this?
Re: How to make givemoney command -
Grim_ - 14.08.2011
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.
Re: How to make givemoney command -
Darnell - 14.08.2011
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;
}
Re: How to make givemoney command -
lyrics - 14.08.2011
not a admin system i mean for players
And you didnt read the description?
I said without using ZCMD
Re: How to make givemoney command -
Darnell - 14.08.2011
Well, you were in my server now, lol...and I don't like DCMD or anything other, ZCMD rocks.
AW: How to make givemoney command -
samtey - 14.08.2011
Lol, just convert it!
PHP код:
if(!strcmp(cmdtext, "/givecash", true, 9))
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;
}
Gimme a rep if its right!
Re: AW: How to make givemoney command -
Darnell - 14.08.2011
Quote:
Originally Posted by samtey
Lol, just convert it!
PHP код:
if(!strcmp(cmdtext, "/givecash", true, 9))
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;
}
Gimme a rep if its right!
|
Dont beg for rep lol, and test it yourself first >.<
AW: How to make givemoney command -
samtey - 14.08.2011
Well, at least I know how to convert it!