How to make a command
#1

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

Read on wiki samp before post.
Reply
#3

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

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)
Reply
#5

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[].
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)