10.12.2012, 13:34
PHP код:
/*
=~==~=~==~=~==~=~==~=~==~=~==~=~==~=~==~=~==~=~==~=~==~=~==~
=~==~=~==COPYRIGHT - 2012 - LYNET=~==~=~==~=~==~=~==~=~==~
*/
#include <a_samp>
#include <zcmd>
#include <foreach>
#include <sscanf2>
// Colors
#define COLOR_BRIGHTRED 0xFF000AAA
#define COLOR_AQUA 0x00FFFFAA
#define COLOR_GREYs 0xAFAFAFAA
#define COLOR_BEIGE 0xFFF8DCAA
#define COLOR_BLACK 0x000000AA
#define COLOR_BLUE 0x0000FFAA
#define COLOR_BLUELIGHTER 0x00BFFFAA
#define COLOR_BLUELIGHT 0x1E90FFAA
#define COLOR_BLUEMEDIUM 0x0000CDAA
#define COLOR_BLUEDARK 0x00008BAA
#define COLOR_PINK 0xFF1493AA
#define COLOR_PINKDARK 0xFF00FFAA
#define COLOR_FADE 0xE6E6E6E6
#define COLOR_GREEN 0x008000AA
#define COLOR_GREENLIGHT 0x00FF00AA
#define COLOR_GREENDARK 0x006400AA
#define COLOR_MAROON 0x800000AA
#define COLOR_OKER 0x808000AA
#define COLOR_ORANGE 0xFF4500AA
#define COLOR_PURPLE 0x800080AA
#define COLOR_VIOLETDARK 0x9400D3AA
#define COLOR_INDIGO 0xAB0082AA
#define COLOR_RED 0xFF0000AA
#define COLOR_SAND 0xFFDEADAA
#define COLOR_SILVER 0xC0C0C0AA
#define COLOR_TEAL 0x008080AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_GOLD 0xFFD700AA
#define COLOR_BROWN 0x8B4513AA
#define COLOR_BROWNLIGHT 0xA0522DAA
#define COLOR_GRAY 0xA9A9A9AA
#define COLOR_GRAYDARK 0x696969AA
#define COLOR_INVISIBLE 0xFFFFFF00
#define COLOR_GREY 0xBEBEBEAA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_GREENs 0x33AA33AA
#define COLOR_GRAD5 0xE3E3E3FF
#define COLOR_GRAD1 0xB4B5B7FF
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_RED1 0xFF0000AA
#define COLOR_LIGHTGREEN 0x9ACD32AA
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" LNS v1.0a");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
SetGameModeText("Live 'N' Scream");
AddPlayerClass(107,2519.5652,-1673.0038,14.5379,80.2884,0,0,0,0,0,0); // GroveS1
AddStaticVehicle(412,2511.3474,-1688.5330,13.3903,230.1526,10,8); // GroveC1
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, COLOR_YELLOW, "SERVER: /modhelp -> /admins -> /updates");
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid)
{
if(vehicleid == 412)
{
new name[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name,sizeof(name));
if(strfind(name,"[GS]",false) != -1);
}
else
{
SendClientMessage(playerid, COLOR_GREEN,"SERVER: You are not a official Grove Street Member!");
RemovePlayerFromVehicle(playerid);
}
}
return 1;
}
Someone please help me.