19.11.2012, 19:07
Well this is my first post and i think players may like it, I don't mind if you don't as i'm quite new to coding in "pwn".
Before doing anything.
1)Load Pawno
2)Press CTRL+N
3)Press CTRL+A
4)Press Delete
5)You're ready!
Ok so fist you have to define it as a filterscript
So now you've defined it you have to include the a_samp
After that we create a "IF" statement This can be done like this
Now we start to create the actual script. If you wan't a initialization message (When the script loads) use this
Example of this
Using that we'll need a exit one.
Now we can create the messages so when the player spawns it displays them.
Now we're going to do a command input, This will allow the player to type in a command and it's displayed.
Heres the proper example
Developing on this you can send a message to all players by using
Heres the correct example.
at the very end of the script you need a ending statement which can be done by this.
Thanks for viewing the tutorial, I hope i helped you. If you have any help you wan't to give me Please post it in the comments,
~Thanks
Kyle_Magix(RevolutionLite)
Before doing anything.
1)Load Pawno
2)Press CTRL+N
3)Press CTRL+A
4)Press Delete
5)You're ready!
Ok so fist you have to define it as a filterscript
Код:
#define FILTERSCRIPT //This is a comment, Use it to display the information you need
Код:
#include <a_samp> //This includes it into the actual game!
Код:
#if defined FILTERSCRIPT
Код:
public OnFilterScriptInit()
{
//Code here Tabbed out to make sure its easily understood
return 1;
}
Код:
public OnFilterScriptInit()
{
print("\n----------------------------------");
print(" .........:Tutorial's Are Cool As:...........");
print("----------------------------------\n");
return 1;
}
Код:
public OnFilterScriptExit()
{
return 1;
}
Код:
public OnPlayerSpawn(playerid) //This will get there playerid on spawn
{
SendClientMessage(playerid,colour,"message");
return 1;
//Thats the basic, to make it better you can actually add multipul entries
}
Код:
public OnPlayerSpawn(playerid)
{
SendClientMessage(playerid,0xFFFFFF,"Welcome, Type /help or /commands for more info!");
return 1;
}
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/info", cmdtext, true) == 0)
{
SendClientMessage(playerid,0xFFFFFF,"Creator: Kyle Magix ");
//Thats the base example To expand you can have lots of lines.
}
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/info", cmdtext, true) == 0)
{
SendClientMessage(playerid,0xFFFFFF,"Creator: Kyle Magix ");
SendClientMessage(playerid,0xFFFFFF,"Tested By: You! ");
SendClientMessage(playerid,0xFFFFFF,"Use /jobhelp to find out how to get a job ");
}
}
Код:
SendClientMessageToAll(COLORCODE,"TEXT");
Код:
SendClientMessageToAll(0xFF0000,"This is a tutorial and thanks for viewing it");
Код:
#endif
~Thanks
Kyle_Magix(RevolutionLite)


