How do i add a new command?
#1

Dear people.
Im a beginner in scritping and my first mission is; how to add 2 commands in Pawno.

I started with my first command /Rules

Quote:

if (strcmp("/Regels", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, 100, DIALOG_STYLE_MSGBOX, "Regels", "{00FF00}1.{FFFFFF} Het gebruiken van cheats , mods , bugs en glitches is niet toegestaan\n{00FF00}2.{FFFFFF} Schelden is niet toegestaan\n{00FF00}3.{FFFFFF}Meerdere accounts is niet toegestaan\n{00FF00}3.{FFFFFF} Adverteren is niet toegestaan\n{00FF00}4.{FFFFFF} Het scammen van andere spelers is niet toegestaan\n{00FF00}5.{FFFFFF} Het lenen van blabla", "Sluiten", "");
return 1;
}
return 0;
}

But i dont know how to add a new command in my gamemode like /News

Please can someone help me

Regards,
RodyNL
Reply


Messages In This Thread
How do i add a new command? - by RodyNL - 20.10.2016, 14:54
Re: How do i add a new command? - by ThatFag - 20.10.2016, 14:59
Re: How do i add a new command? - by RodyNL - 20.10.2016, 15:01
Re: How do i add a new command? - by Barnwell - 20.10.2016, 15:20
Re: How do i add a new command? - by RodyNL - 20.10.2016, 15:35

Forum Jump:


Users browsing this thread: 3 Guest(s)