Jump to content

Question

Posted

Am o problema pe server la uni playeri nu la toti cind se conecteaza cineva nu poti scire in chat vreo 5 secunde dece se intipla asa si este din cauza ca netui prea slab ori ca sunteam prea departe de host

lol

2 answers to this question

Recommended Posts

Posted

OnplayerConnect

public OnPlayerConnect(playerid)
{

SpeedBoostMultiplier[playerid] = 1.0;


DM[playerid] = 0;


 SetPVarInt(playerid, "laser", 0);
        SetPVarInt(playerid, "color", 18643);



new pName[MAX_PLAYER_NAME];

 	UpdateTime();
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		TextDrawShowForPlayer(i, Text:Clock[i]);
	}

  new strings[15];
   format(strings, 15, "~w~%d/~r~70",GetOnLinePlayers());
   TextDrawSetString(players, strings);
   TextDrawShowForPlayer(playerid, players);




    for(new i = 0; i < sizeof(InvalidNames); i++)
    {
        if(!strcmp(pName, InvalidNames[i], true))
        {

        }
    }



	SendClientMessage(playerid,0xFFFFFFAA, "   {FFFFFF}Bun venit pe server nu uita sa citesti {B8FF02}/reguli !!");
	SendClientMessage(playerid,COLOR_YELLOW,"{FFFFFF}Pentru a afla comenzile scrie {B8FF02}/cmds");
	SendClientMessage(playerid, 0xF97804AA,"  {FFFFFF}Nu ne plac {00FFEE}codati {FFFFFF}asa ca daca esti codat {B8FF02}kick -> Ban");
    SendClientMessage(playerid, 0xCECECEFF,"{B8FF02}Multumesc ca ati alesc {B7FF00}SGM {00C0FF}*Joaca Placuta la toti");
	TextDrawShowForPlayer(playerid, Textdraw0);
	TextDrawShowForPlayer(playerid, Textdraw1);
	TextDrawShowForPlayer(playerid, players);
	TextDrawShowForPlayer(playerid, REGBOX);
	TextDrawShowForPlayer(playerid, REGTEXT);
	TextDrawShowForPlayer(playerid, REGTEXT2);
	TextDrawShowForPlayer(playerid, Textdraw2);
	TextDrawShowForPlayer(playerid, Textdraw3);
	TextDrawShowForPlayer(playerid, Textdraw7);
	TextDrawShowForPlayer(playerid, Textdraw5);
	TextDrawShowForPlayer(playerid, Textdraw6);
	TextDrawShowForPlayer(playerid, Textdraw99);
    TextDrawShowForPlayer(playerid, Textdraw9);
	TextDrawShowForPlayer(playerid, Textdraw88);
	TextDrawShowForPlayer(playerid, Textdraw4);
	TextDrawShowForPlayer(playerid, Textdraw8);

	       for(new i; i < MAX_PLAYERS; i ++)
   {
      if(IsPlayerConnected(i))
      {
         TextDrawShowForPlayer(i, players);
      }
   }


	gActivePlayers[playerid]++;
	gLastGaveCash[playerid] = GetTickCount();
	GetPlayerName(playerid, pname, sizeof(pname));
    format(oyunism, sizeof(oyunism), "/Saver/%s.ini",pname);
    if(!dini_Exists(oyunism))
    {
    dini_Create(oyunism);
    dini_IntSet(oyunism, "Score", 0);
    dini_IntSet(oyunism, "Money", 0);
    SetPlayerScore(playerid, dini_Int(oyunism, "Score"));
    SetPlayerMoney(playerid, dini_Int(oyunism, "Money"));
    }
    else
    {
    SetPlayerScore(playerid, dini_Int(oyunism, "Score"));
    SetPlayerMoney(playerid, dini_Int(oyunism, "Money"));
    }
    BigEar[playerid] = 0;
    SetPlayerMapIcon( playerid, 0, -689.13,928.52,13.63, 35, 0 );
    SetPlayerMapIcon( playerid, 1, 2026.47,1008.11,10.82, 44, 0 );
    SetPlayerMapIcon( playerid, 2, 2000.90,1543.44,13.59, 9, 0 );
    SetPlayerMapIcon( playerid, 3, -1616.03,686.43,7.19, 30, 0 );
	SetPlayerMapIcon( playerid, 4, 2294.11,2468.65,10.82, 30, 0 );
    SetPlayerMapIcon( playerid, 5, 1544.0830,-1675.6649,13.5577, 30, 0 );
	SetPlayerMapIcon( playerid, 6, 397.6663,2460.0630,16.5000, 5, 0 );
	SetPlayerMapIcon( playerid, 8, -1955.749389,266.408355,35.174148, 52, 0 );
	SetPlayerMapIcon( playerid, 9, 1496.852539, 698.787109, 1018.056213, 19,  0 );
	SetPlayerMapIcon( playerid, 10, 2494.714111, -1666.929809, 13.343750, 62, 0 );
	SetPlayerMapIcon( playerid, 12, -2868.3000,-922.5251,9.4922, 53, 0 );
	SetPlayerMapIcon( playerid, 13, 309.5593,-369.9211,9.5036, 53, 0 );
	SetPlayerMapIcon( playerid, 14, 1360.0364,-1715.5333,8.4992, 19, 0 );
	SetPlayerMapIcon( playerid, 15, -1977.0634,104.9033,27.6875, 55, 0 );
    ClearVars(playerid);
    SyncCheckpoints(playerid);


	return 1;
}
OnPlayerText
public OnPlayerText(playerid, text[])
{

//anti ip
new word[256],Index;while(Index < strlen(text)) {
		word = strtok(text,Index);
		if(CheckAdv(word)==1){
			new i=strfind(text,word),j=i+strlen(word)-1; text[i++]='[';
			while(i<j) {text[i]='•';i++;}
			Ban(playerid);
			text[j]=']';
		}
	}

SetPlayerChatBubble(playerid, text, 0xFFFFFFAA, 300.0, 10000);
new tstr[128];
format(tstr, 128,"[%i]: %s", playerid,ColouredText(text));
SendPlayerMessageToAll(playerid,tstr);


 return 0;
}

lol

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.