Jump to content
  • 0

dcmd ?


leon

Question

Am si eu o intrebare.

Cum fac din dcmd comanda if (strcmp(cmd, "/rset", true) == 0) ?

cum e

dcmd_rset(playerid,params[])

{

if(!IsPlayerAdmin(playerid))return 0;

new text[128], cash;

if(sscanf(params,"si",text,cash))return SendClientMessage(playerid,COLOR_WHITE,"USAGE: /rset [word] [money]");

if(strlen(text) > 25) return SendClientMessage(playerid,COLOR_GRAD2,"ERROR: Your fastevent word is to long. Please shorten it to 25 characters max.");

if(cash < 1 || cash > 1000000000) return SendClientMessage(playerid,COLOR_GRAD2,"ERROR: Invalid prize money. Please use $1 - $1000000000.");

SendClientMessage(playerid,0x00FF80FF,"You have put an FastEvent.");

format(ReactionString,sizeof(ReactionString),"%s",text);

ReactionCash = cash;

PassiveMode = PASSIVE_ON;

ReactionTest();

return 1;

}

Se poate face ..?

i0418xcttya707ofg.jpg

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.