05.01.2010, 06:33
VIcons V1.1
[center]Код:
//****************************// // ** ** // // /** /** // // /** /** // // //** ** // // //** ** // // //**** Icons // // //** // // // // //****************************//
• Easy to Add Icons
• /createvicon to add Save and add Icons easily
• Tested with over 150 Icons and still runs Smoothly
• /iconhelp if you need any help adding Icons
• Limit of VIcons not known yet
Functions
How to use
Its easy! Just follow these instructions,
• Add VIcons to your server.cfg filterscripts line
• Go into your server and go to a location where you want a VIcon
• /iconhelp if you forget this in game
• Use /createvicon to make a VIcon, VIcons are saved to /pawno/scriptfiles/VIcons.txt
• Quit your server and find VIcons.txt in your scriptfiles
• Copy what is in VIcons.txt
• Open up this FS in pawno and add what you copied (something like SetPlayerVIcon(61, 0, 2492.7244,-1669.7457,13.3359, 500); ) in OnFlilterScriptInit.
• OnFilterScriptInit should now look something like this:
• Compile the script to /yoursampserver/filterscripts/
• Turn your server back on and the VIcon should be there if you have done it correctly.
Downloads
V1.1
V1.1
http://pastebin.com/d4bf23741
V1.0pawn Код:
SetPlayerVIcon(Markertype, Color, Float:X, Float:Y, Float:Z, Streamdistance);
RemoveVIcon(IconId)
How to use
Its easy! Just follow these instructions,
• Add VIcons to your server.cfg filterscripts line
• Go into your server and go to a location where you want a VIcon
• /iconhelp if you forget this in game
• Use /createvicon to make a VIcon, VIcons are saved to /pawno/scriptfiles/VIcons.txt
• Quit your server and find VIcons.txt in your scriptfiles
• Copy what is in VIcons.txt
• Open up this FS in pawno and add what you copied (something like SetPlayerVIcon(61, 0, 2492.7244,-1669.7457,13.3359, 500); ) in OnFlilterScriptInit.
• OnFilterScriptInit should now look something like this:
pawn Код:
public OnFilterScriptInit()
{
SetTimer("VIconCheck", 500, true);
SetPlayerVIcon(61, 0, 2492.7244,-1669.7457,13.3359, 500); //Example Map Icon in Grove Street
return 1;
}
• Turn your server back on and the VIcon should be there if you have done it correctly.
Downloads
V1.1
V1.1
http://pastebin.com/d4bf23741
VIcons.rar