25.05.2014, 12:23
Good job.
Cleanboy, add this OnPlayerConnect in Filterscript.
pawn Code:
|
public OnPlayerConnect(playerid) { if(IsPlayerNPC(playerid)) return 1; new string[128]; new pname[24]; //Variables zoneupdates[playerid] =1; //Set up the music so people can hear it while selecting class PlayAudioStreamForPlayer(playerid,"http://k007.kiwi6.com/hotlink/djtq3f3gmh/Karaoke_Supermassive_Black_Hole_-_Muse_-.mp3"); //Connect Messages format(string,sizeof(string),"Welcome to %s!",svname,sversion); //v%s 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!",pname,playerid,svname,sversion); //v%s SendClientMessageToAll(COLOR_VIOLETBLUE,string); format(string,sizeof(string),"6%s(%d) Has joined %s!",pname,playerid,svname,sversion); //v%s IRC_Say(gGroupID,IRC_CHANNEL,string); SetPlayerColor(playerid,COLOR_DEADCONNECT); //Do things to the player JailTimer[playerid] = TextDrawCreate(505.000000, 411.000000, "Jailtime: 60"); 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); SetPlayerMapIcon(playerid,1,-2626.1843,211.5102,4.6097,6,0); //Ammunation SetPlayerMapIcon(playerid,2,-2099.6882,899.1699,76.7109,24,0); //CaltonHeightsDH SetPlayerMapIcon(playerid,3,-2779.9194,0.3026,10.0625,24,0); //OceanFlatsDH SetPlayerMapIcon(playerid,4,-2576.4824,818.9226,49.9844,24,0); //ParadisoDH SetPlayerMapIcon(playerid,5,-2433.7866,1281.6011,23.7422,24,0); //JuniperHollowDH SetPlayerMapIcon(playerid,6,-1547.4066,123.6555,3.5547,9,0); //ShipYard SetPlayerMapIcon(playerid,7,-1657.7573,1210.2754,7.2500,55,0); //Otto\'sCars SetPlayerMapIcon(playerid,8,-1923.3926,303.6380,41.0469,8,0); //BombShop SetPlayerMapIcon(playerid,9,-2331.8582,-164.2207,35.5547,10,0); //BurgerShotGarcia SetPlayerMapIcon(playerid,10,-2671.5444,260.9214,4.6328,10,0); //BurgerShotOcean SetPlayerMapIcon(playerid,11,370.7744,-6.5378,1001.8589,14,0); //CluckinBellOcean SetPlayerMapIcon(playerid,12,-2553.8923,193.2280,6.1560,49,0); //GayDarStation SetPlayerMapIcon(playerid,13,-2241.8118,131.9901,35.3203,47,0); //Zero\'s SetPlayerMapIcon(playerid,14,-2242.2817,-85.7698,35.3203,49,0); //Misty\'s SetPlayerMapIcon(playerid,15,-1951.9911,300.2070,35.4688,55,0); //WangCars SetPlayerMapIcon(playerid,16,-2658.3201,639.5060,14.4531,22,0); //Hospital SetPlayerMapIcon(playerid,17,-2568.8982,243.9241,10.2489,7,0); //Barbers SetPlayerMapIcon(playerid,18,-2270.1182,-152.8132,35.3203,54,0); //GYM SetPlayerMapIcon(playerid,19,-2029.2903,-102.0118,35.1641,36,0); //DrivingSchool SetPlayerMapIcon(playerid,20,-1979.9883,138.0498,27.6875,42,0); //TrainStation SetPlayerMapIcon(playerid,21,-1911.2001,829.2663,35.1719,10,0); //BurgerShotDowntown SetPlayerMapIcon(playerid,22,-1886.2000,862.4730,35.1719,45,0); //DowntownZip SetPlayerMapIcon(playerid,23,-1806.8252,947.8553,24.8906,29,0); //FinancialPizza SetPlayerMapIcon(playerid,24,-1748.4784,963.3699,24.8828,30,0); //FBI SetPlayerMapIcon(playerid,25,-1692.5487,949.6002,24.8906,45,0); //DowntownVictim SetPlayerMapIcon(playerid,26,-1496.8027,919.8218,7.1875,52,0); //Bank SetPlayerMapIcon(playerid,27,-1609.2813,712.9857,13.7334,30,0); //SFPD SetPlayerMapIcon(playerid,28,-1719.8079,1356.6371,7.1875,29,0); //EsplanadePizza SetPlayerMapIcon(playerid,29,-2622.5164,1412.6412,7.0938,49,0); //Jizzy\'s SetPlayerMapIcon(playerid,30,-2356.0327,1004.7512,50.8984,10,0); //BurgerShotJuniperHollow SetPlayerMapIcon(playerid,31,-2374.1877,908.1357,45.4371,45,0); //JuniperHillBinco SetPlayerMapIcon(playerid,32,-2446.3350,752.2393,35.1719,62,0); //SupaSave SetPlayerMapIcon(playerid,33,-1814.2487,617.8710,35.1719,14,0); //DowntownCluckin //Check to see if they are registered or logged in if(udb_Exists(PlayerName(playerid))) { SendClientMessage(playerid,COLOR_ERROR,"This player name has already been registered. Please login before you spawn."); ShowLoginScreen(playerid); } else if(!udb_Exists(PlayerName(playerid))) { SendClientMessage(playerid,COLOR_ERROR,"This player name has not been registered. You must register before playing."); ShowRegisterScreen(playerid); } for(new i = 0; i < sizeof(Objects); i++) Player[playerid][view][i] = false; /////////xobj return 1; }
// TextDrawShowForPlayer(playerid,Textdraw0); // TextDrawShowForPlayer(playerid,Textdraw1); // TextDrawShowForPlayer(playerid,Textdraw2); // TextDrawShowForPlayer(playerid,Textdraw3); // TextDrawShowForPlayer(playerid,Textdraw4); // TextDrawShowForPlayer(playerid,Textdraw5); // TextDrawShowForPlayer(playerid,Textdraw6); // TextDrawShowForPlayer(playerid,Textdraw7);
OnPlayerConnect(playerid)
{
// Showing the Login Textdraw
TextDrawShowForPlayer(playerid,Textdraw0);
TextDrawShowForPlayer(playerid,Textdraw1);
TextDrawShowForPlayer(playerid,Textdraw2);
TextDrawShowForPlayer(playerid,Textdraw3);
TextDrawShowForPlayer(playerid,Textdraw4);
TextDrawShowForPlayer(playerid,Textdraw5);
TextDrawShowForPlayer(playerid,Textdraw6);
TextDrawShowForPlayer(playerid,Textdraw7);
return 1;
}
public OnPlayerSpawn(playerid)
{
TextDrawHideForPlayer(playerid, Textdraw0);
TextDrawHideForPlayer(playerid, Textdraw1);
TextDrawHideForPlayer(playerid, Textdraw2);
TextDrawHideForPlayer(playerid, Textdraw3);
TextDrawHideForPlayer(playerid, Textdraw4);
TextDrawHideForPlayer(playerid, Textdraw5);
TextDrawHideForPlayer(playerid, Textdraw6);
TextDrawHideForPlayer(playerid, Textdraw7);
return 1;
}