[Tutorial] How make a command like /donate
#1

Hi ! I show you here , for players who dont know to make a command like /donate !

1. Go in your server pawno !
2. Open your server gamemode !
3. Go to ,,cmd:,, places , where are all cmds ! Press replace and write in first box : ,,cmd:,, then enter
4. Copy this pawno code and put him in your server pawno !
cmd:Command Name(playerid,params[])
{

new Command Name[ 1900 ];
strcat( Command Name, "{PUT HERE COLOR}Write what do you want !\n\n" );
strcat( Command Name, "{PUT HERE COLOR}Write what do you want !\n" );
strcat( Command Name, "{PUT HERE COLOR}Write what do you want !\n" );
strcat( Command Name, "{PUT HERE COLOR}Write what do you want ! \n" );
strcat( Command Name, "{PUT HERE COLOR}Write what do you want !\n" );
strcat( Command Name, "{PUT HERE COLOR}Write what do you want !\n" );
strcat( Command Name, "{PUT HERE COLOR}Write what do you want !\n" );
ShowPlayerDialog( playerid, 9382, DIALOG_STYLE_MSGBOX, "{15FF00}Write what do you want !", Cumparaturi, "Bine","" );
return ( 1 );




EXAMPLE:


cmd:donate(playerid,params[])
{

new Donate[ 1900 ];
strcat( Donate, "{15FF00}Look what you can buy on my server !\n\n" );
strcat( Donate, "{FF0000}Admin\n" );
strcat( Donate, "{15FF00}Vip\n" );
strcat( Donate, "{15FF00}Personal Car! \n" );
strcat( Donate, "{15FF00}Personal House!\n" );
strcat( Donate, "{15FF00}Personal Base!\n" );
strcat( Donate, "{15FF00}RCON!\n" );
ShowPlayerDialog( playerid, 9382, DIALOG_STYLE_MSGBOX, "{15FF00}Donate", Cumparaturi, "OK","" );







This tutorial is for new people in scripting world ! Sorry for bad english !

https://www.youtube.com/watch?v=N_Rt...ature=********* -- Look a tutorial , isn t in english , but can help you !
Reply
#2

This isn't a tutorial..
If you want to make a tutorial then you have to explain how to do that(cmd:donate) step by step..and also it could be better if you explain things like: "new Donate[ 1900 ];" etc..
Reply
#3

Ok . Thanks for suggestion !
Reply
#4

First of all use [pawn] tags and second of all this won't work for every setup, there is different command processors such as ZCMD and YCMD which are the only scenario where this would work.. That being said you do need to work on your explanation and actually say what you are doing. Otherwise this tutorial is something you've just taken out of your gamemode and pasted into this thread to claim it's a tutorial.
Reply
#5

This isn't tutorial it just a code the tutorial must be step by step in making.
Reply
#6

Quote:
Originally Posted by TeddyYeah
Посмотреть сообщение
new Command Name[ 1900 ];
new Donate[ 1900 ];
Wait.. What?! Your topic isn't even that big!
Lack of explanation as said above.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)