SA-MP Forums Archive
How to make a command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to make a command (/showthread.php?tid=525776)



How to make a command - JordanSmith - 13.07.2014

How do I make a /buyfood command for roleplay server with ZCMD?


Re: How to make a command - player94 - 13.07.2014

Read on wiki samp before post.


Re: How to make a command - kamiliuxliuxliux - 13.07.2014

pawn Код:
CMD:buyfood(playerid)
{
    // all your stuff you need to 'feed' player
    return 1;
}



Re: How to make a command - saffierr - 14.07.2014

Well I am new to script, but as I saw till so far with any cmd, you type this: CMD:buyfood(playerid, params[])
but you just typed : CMD:buyfood(playerid)


Re: How to make a command - kamiliuxliuxliux - 14.07.2014

If you'll need some params like: /buyfood [what_sort], then you need params[], but if you only use /buyfood there's no need to add params[].