23.11.2013, 04:32
(
Последний раз редактировалось TahaAsif12; 23.11.2013 в 14:12.
)
Introduction:
Hello SA-MP Community!
My Name Is Taha Asif aka Nathan Sykes and today i am gonna show you how to create RP Commands With ZCMD!
I WIll Explain ou Guys My Best.
Tutorial:
Now Let Me Explain You Guys. /me and /do Are Commands To Show Actions. In Heavy Roleplay Server's It Is Very Important To Be Good With RP'ing.
I Am Going To Use ZCMD. You Can ****** It.
* TahaAsif12 Command:
Explaination Is In The Code Box!
Now For /do:
I Apologize If Something Is Not Explained Good.
I Am Also Not A Pro Scripter But I Just Wanted To Share My Little Knowledge With You.
Remember To Leave A Rep If You Like It!
Hello SA-MP Community!
My Name Is Taha Asif aka Nathan Sykes and today i am gonna show you how to create RP Commands With ZCMD!
I WIll Explain ou Guys My Best.
Tutorial:
Now Let Me Explain You Guys. /me and /do Are Commands To Show Actions. In Heavy Roleplay Server's It Is Very Important To Be Good With RP'ing.
I Am Going To Use ZCMD. You Can ****** It.
* TahaAsif12 Command:
Код:
CMD:me(playerid, params[]) //We use this to tell the server which cmd is being used { //opening bracket if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /me [action]"); //this gives the player some hint how to use this cmd new string[128]; //string which will be used later format(string, sizeof(string), "* %s %s", GetPlayerNameEx(playerid), params); // here is the string used. This formats the player actions of what he types SendClientMessageToAll(-1, string); //sends the cleint message return 1; //return of our CMD } //closing bracket
Now For /do:
Код:
CMD:do(playerid, params[]) //same as above. tells the client which CMD is used { //opening bracket if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /do [action]"); //tells the player how to use this CMD else if(strlen(params) >= 100) return SendClientMessageEx(playerid, COLOR_GREY, "The specified message must not be longer than 99 characters in length."); //checks if the player writes more than 99 words new string[100]; //string to be used in format format(string, sizeof(string), "* %s (( %s ))", params, GetPlayerNameEx(playerid)); //formats the action of the player SendClientMessageToAll(-1, string); //sends the cleint message return 1; //return of our cmd } //closing bracket
I Am Also Not A Pro Scripter But I Just Wanted To Share My Little Knowledge With You.
Remember To Leave A Rep If You Like It!