Posts: 86
Threads: 37
Joined: Jan 2016
Reputation:
0
Hi,
How to make with zcmd that player can write 2 slashes and then text with parameters or no now is that
/givemoney Player
I want to make smth
// Player
(Using zcmd)
Posts: 86
Threads: 37
Joined: Jan 2016
Reputation:
0
But i want to get params.. It's by same as make simple command with one slash / [message] but i with too slashes // [message]
Posts: 263
Threads: 11
Joined: Nov 2014
What the fuck is wrong with you people lol.
pawn Код:
CMD:/givemoney(playerid, params[])
{
new
id, amount;
if(sscanf(params,"ui",id, amount)) return SendClientMessage(playerid, -1, "//givemoney [id] [amount]";
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "No such player.");
GivePlayerMoney(id, amount);
return 1;
}