04.07.2013, 21:26
You can start with simple Hello World! scripts, and I suggest you to start on filterscripts.
One Example
You get those public blabla(); clicking NEW in pawno
When you start understanding you check wiki and it's easey
One Example
You get those public blabla(); clicking NEW in pawno
pawn Код:
//At the top ~ "//" means comment
#include <a_samp>
#define FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" | Filterscript name LOADED |");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmd, "/givecard"))
{
SendClientMessage(playerid, -1, "Hello World!");
}
return 1; //this is needed or it gives unknown command
}

