Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ONPLAYERCONNECT
- public OnPlayerConnect(playerid)
- {
- AntiFlood_InitPlayer( playerid );
- Avertizari[playerid] = 0;
- ZcmdSpam[playerid] = 0;
- destroyer[playerid] = 0;
- pnsmoney[playerid] = 0;
- FPSOn[playerid] = 0;
- HealthOn[playerid] = 0;
- OnDutymedic[playerid] = 0;
- cased[playerid] = 0;
- caser[playerid] = 1001;
- RepairTime[playerid] = 0;
- Tigaanel[playerid] = 0;
- LastPlayer[playerid] = -1;
- PlayerInfo[playerid][pNRE] = -1;
- LoadTextdraws(playerid);
- KillTimer(login[playerid]);
- // TEXTDRAW
- PlayerTextDrawShow(playerid, logo[playerid]);
- PlayerTextDrawShow(playerid, Time);
- PlayerTextDrawShow(playerid, Date);
- GameTextForPlayer(playerid, "~w~LOADING...~n~~y~CHECKING BAN STATUS~n~", 3500, 3);
- new tiganel[200],
- str1[128];
- GetPlayerName(playerid, tiganel, sizeof(tiganel));
- if(strlen(tiganel) < 4)
- {
- PlayerTextDrawShow(playerid, namelogo1[playerid]);
- format(str1,sizeof(str1),"%s",tiganel);
- PlayerTextDrawSetString(playerid, namelogo1[playerid], str1);
- }
- else if(strlen(tiganel) < 7 && strlen(tiganel) > 3)
- {
- PlayerTextDrawShow(playerid, namelogo2[playerid]);
- format(str1,sizeof(str1),"%s",tiganel);
- PlayerTextDrawSetString(playerid, namelogo2[playerid], str1);
- }
- else if(strlen(tiganel) < 10 && strlen(tiganel) > 6)
- {
- PlayerTextDrawShow(playerid, namelogo3[playerid]);
- format(str1,sizeof(str1),"%s",tiganel);
- PlayerTextDrawSetString(playerid, namelogo3[playerid], str1);
- }
- else if(strlen(tiganel) < 13 && strlen(tiganel) > 9)
- {
- PlayerTextDrawShow(playerid, namelogo4[playerid]);
- format(str1,sizeof(str1),"%s",tiganel);
- PlayerTextDrawSetString(playerid, namelogo4[playerid], str1);
- }
- else if(strlen(tiganel) < 16 && strlen(tiganel) > 12)
- {
- PlayerTextDrawShow(playerid, namelogo5[playerid]);
- format(str1,sizeof(str1),"%s",tiganel);
- PlayerTextDrawSetString(playerid, namelogo5[playerid], str1);
- }
- else if(strlen(tiganel) < 19 && strlen(tiganel) > 15)
- {
- PlayerTextDrawShow(playerid, namelogo6[playerid]);
- format(str1,sizeof(str1),"%s",tiganel);
- PlayerTextDrawSetString(playerid, namelogo6[playerid], str1);
- }
- else if(strlen(tiganel) < 22 && strlen(tiganel) > 18)
- {
- PlayerTextDrawShow(playerid, namelogo7[playerid]);
- format(str1,sizeof(str1),"%s",tiganel);
- PlayerTextDrawSetString(playerid, namelogo7[playerid], str1);
- }
- else if(strlen(tiganel) < 25 && strlen(tiganel) > 21)
- {
- PlayerTextDrawShow(playerid, namelogo8[playerid]);
- format(str1,sizeof(str1),"%s",tiganel);
- PlayerTextDrawSetString(playerid, namelogo8[playerid], str1);
- }
- else if(strlen(tiganel) < 28 && strlen(tiganel) > 24)
- {
- PlayerTextDrawShow(playerid, namelogo9[playerid]);
- format(str1,sizeof(str1),"%s",tiganel);
- PlayerTextDrawSetString(playerid, namelogo9[playerid], str1);
- }
- else if(strlen(tiganel) < 31 && strlen(tiganel) > 27)
- {
- PlayerTextDrawShow(playerid, namelogo10[playerid]);
- format(str1,sizeof(str1),"%s",tiganel);
- PlayerTextDrawSetString(playerid, namelogo10[playerid], str1);
- }
- if(IsPlayerConnected(playerid))
- {
- PlayerTextDrawShow(playerid, healthu[playerid]);
- }
- if(antirem[playerid] == 0)
- {
- antirem[playerid] = 1;
- }
- if(CountIP(GetIP(playerid)) > 2 && !IsPlayerNPC(playerid))
- {
- Kick(playerid);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement