Код:
public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid)) return 1;
new string[128];
new pname[24];
//Variables
zoneupdates[playerid] =1;
//Connect Messages
format(string,sizeof(string),"Welcome to %s v%s!",svname,sversion);
SendClientMessage(playerid,COLOR_WHITE,string);
format(string,sizeof(string),"We have many fun things for you to do here in %s",sabbv);
SendClientMessage(playerid,COLOR_ROYALBLUE,string);
SendClientMessage(playerid,COLOR_LIME,"Please remember to abide by our server /rules at all times");
SendClientMessage(playerid,COLOR_GREEN,"If you have any problems feel free to /report them to the Administrators online");
//Player Join message
GetPlayerName(playerid,pname,sizeof(pname));
format(string,sizeof(string),"%s(%d) Has joined %s v%s!",pname,playerid,svname,sversion);
SendClientMessageToAll(COLOR_VIOLETBLUE,string);
format(string,sizeof(string),"6%s(%d) Has joined %s v%s!",pname,playerid,svname,sversion);
IRC_Say(gGroupID,IRC_CHANNEL,string);
SetPlayerColor(playerid,COLOR_DEADCONNECT);
//Do things to the player
JailTimer[playerid] = TextDrawCreate(505.000000, 411.000000, "Jailtime: 180");
TextDrawBackgroundColor(JailTimer[playerid], -1);
TextDrawFont(JailTimer[playerid], 3);
TextDrawLetterSize(JailTimer[playerid], 0.529999, 1.299999);
TextDrawColor(JailTimer[playerid], 65535);
TextDrawSetOutline(JailTimer[playerid], 1);
TextDrawSetProportional(JailTimer[playerid], 1);
TextDrawUseBox(JailTimer[playerid], 1);
TextDrawBoxColor(JailTimer[playerid], 255);
TextDrawTextSize(JailTimer[playerid], 633.000000, 0.000000);
MessageTD[playerid] = TextDrawCreate(241.000000, 410.000000, "TICKET RECIEVED");
TextDrawBackgroundColor(MessageTD[playerid], 255);
TextDrawFont(MessageTD[playerid], 1);
TextDrawLetterSize(MessageTD[playerid], 0.549999, 1.500000);
TextDrawColor(MessageTD[playerid], -1);
TextDrawSetOutline(MessageTD[playerid], 0);
TextDrawSetProportional(MessageTD[playerid], 1);
TextDrawSetShadow(MessageTD[playerid], 1);
TextDrawUseBox(MessageTD[playerid], 1);
TextDrawBoxColor(MessageTD[playerid], 255);
TextDrawTextSize(MessageTD[playerid], 384.000000, 0.000000);
LocationTD[playerid] = TextDrawCreate(43.000000, 327.000000, "Downtown");
TextDrawBackgroundColor(LocationTD[playerid], 255);
TextDrawFont(LocationTD[playerid], 1);
TextDrawLetterSize(LocationTD[playerid], 0.500000, 1.000000);
TextDrawColor(LocationTD[playerid], -1);
TextDrawSetOutline(LocationTD[playerid], 0);
TextDrawSetProportional(LocationTD[playerid], 1);
TextDrawSetShadow(LocationTD[playerid], 1);
format(string,sizeof(string),"Version: %s",sversion);
TextDrawSetString(VersionTD,string);
TextDrawShowForPlayer(playerid,VersionTD);
TextDrawShowForPlayer(playerid,WebsiteTD);
TogglePlayerClock(playerid,1);