[Ajuda] Crashs no SA-MP
#1

Bom, a um tempo atraz eu fiz um topico aqui pedindo ajuda sobre crashs, pediram pra verificar meus arquivos do servidor, e o gamemode.
Sendo que.. o gamemode esta tudo ok, identado, perfeito, nao ha nenhum arquivo faltando no servidor.

Ha alguns dias atras, lanзaram uma nova versao da desgraзa do '******', que possibilita crashar um monte de players do servidor.
Eu e alguns amigos donos de servidores estavamos tentando solucionar o problema, mais nada!
Essa maldita versao do ****** esta acabando com os servidores...
Sei que tem muitos scripters aqui, muitos ainda nao viram esse tipo de problema, se for possivel todos compartilharem o conhecimento, conseguiremos acabar com isso. VLW!
Reply
#2

Vocк ao menos sabe como ele trabalha?
Reply
#3

Thiago Street aki, infelizmente nao Kuddy, tenho amigos que estao sofrendo com isso tambem,
so aparece na tela opcode e um monte de letras e crash...
Reply
#4

Tenta ai, os creditos estao no FS
PHP код:
#include <a_samp>

new warned[MAX_PLAYERS];

public 
OnFilterScriptInit() {
    print(
"\n--------------------------------------\nVehicle Mod Protection by Jameskmonger and JernejL\n--------------------------------------\n");
    return 
1;
}

public 
OnPlayerConnect(playeridwarned[playerid] = 0;

    new 
legalmods[48][22] = {
        {
4001024,1021,1020,1019,1018,1013,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000},
        {
4011145,1144,1143,1142,1020,1019,1017,1013,1007,1006,1005,1004,1003,1001,0000,0000,0000,0000},
        {
4041021,1020,1019,1017,1016,1013,1007,1002,1000,0000,0000,0000,0000,0000,0000,0000,0000,0000},
        {
4051023,1021,1020,1019,1018,1014,1001,1000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000},
        {
4101024,1023,1021,1020,1019,1017,1013,1007,1003,1001,0000,0000,0000,0000,0000,0000,0000,0000},
        {
4151023,1019,1018,1017,1007,1003,1001,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000},
        {
4181021,1020,1016,1006,1002,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000},
        {
4201021,1019,1005,1004,1003,1001,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000},
        {
4211023,1021,1020,1019,1018,1016,1014,1000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000},
        {
4221021,1020,1019,1017,1013,1007,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000},
        {
4261021,1019,1006,1005,1004,1003,1001,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000},
        {
4361022,1021,1020,1019,1017,1013,1007,1006,1003,1001,0000,0000,0000,0000,0000,0000,0000,0000},
        {
4391145,1144,1143,1142,1023,1017,1013,1007,1003,1001,0000,0000,0000,0000,0000,0000,0000,0000},
        {
4771021,1020,1019,1018,1017,1007,1006,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000},
        {
4781024,1022,1021,1020,1013,1012,1005,1004,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000},
        {
4891024,1020,1019,1018,1016,1013,1006,1005,1004,1002,1000,0000,0000,0000,0000,0000,0000,0000},
        {
4911145,1144,1143,1142,1023,1021,1020,1019,1018,1017,1014,1007,1003,0000,0000,0000,0000,0000},
        {
4921016,1006,1005,1004,1000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000},
        {
4961143,1142,1023,1020,1019,1017,1011,1007,1006,1003,1002,1001,0000,0000,0000,0000,0000,0000},
        {
5001024,1021,1020,1019,1013,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000},
        {
5161021,1020,1019,1018,1017,1016,1015,1007,1004,1002,1000,0000,0000,0000,0000,0000,0000,0000},
        {
5171145,1144,1143,1142,1023,1020,1019,1018,1017,1016,1007,1003,1002,0000,0000,0000,0000,0000},
        {
5181145,1144,1143,1142,1023,1020,1018,1017,1013,1007,1006,1005,1003,1001,0000,0000,0000,0000},
        {
5271021,1020,1018,1017,1015,1014,1007,1001,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000},
        {
5291023,1020,1019,1018,1017,1012,1011,1007,1006,1003,1001,0000,0000,0000,0000,0000,0000,0000},
        {
5341185,1180,1179,1178,1127,1126,1125,1124,1123,1122,1106,1101,1100,0000,0000,0000,0000,0000},
        {
5351121,1120,1119,1118,1117,1116,1115,1114,1113,1110,1109,0000,0000,0000,0000,0000,0000,0000},
        {
5361184,1183,1182,1181,1128,1108,1107,1105,1104,1103,0000,0000,0000,0000,0000,0000,0000,0000},
        {
5401145,1144,1143,1142,1024,1023,1020,1019,1018,1017,1007,1006,1004,1001,0000,0000,0000,0000},
        {
5421145,1144,1021,1020,1019,1018,1015,1014,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000},
        {
5461145,1144,1143,1142,1024,1023,1019,1018,1017,1007,1006,1004,1002,1001,0000,0000,0000,0000},
        {
5471143,1142,1021,1020,1019,1018,1016,1003,1000,0000,0000,0000,0000,0000,0000,0000,0000,0000},
        {
5491145,1144,1143,1142,1023,1020,1019,1018,1017,1012,1011,1007,1003,1001,0000,0000,0000,0000},
        {
5501145,1144,1143,1142,1023,1020,1019,1018,1006,1005,1004,1003,1001,0000,0000,0000,0000,0000},
        {
5511023,1021,1020,1019,1018,1016,1006,1005,1003,1002,0000,0000,0000,0000,0000,0000,0000,0000},
        {
5581168,1167,1166,1165,1164,1163,1095,1094,1093,1092,1091,1090,1089,1088,0000,0000,0000,0000},
        {
5591173,1162,1161,1160,1159,1158,1072,1071,1070,1069,1068,1067,1066,1065,0000,0000,0000,0000},
        {
5601170,1169,1141,1140,1139,1138,1033,1032,1031,1030,1029,1028,1027,1026,0000,0000,0000,0000},
        {
5611157,1156,1155,1154,1064,1063,1062,1061,1060,1059,1058,1057,1056,1055,1031,1030,1027,1026},
        {
5621172,1171,1149,1148,1147,1146,1041,1040,1039,1038,1037,1036,1035,1034,0000,0000,0000,0000},
        {
5651153,1152,1151,1150,1054,1053,1052,1051,1050,1049,1048,1047,1046,1045,0000,0000,0000,0000},
        {
5671189,1188,1187,1186,1133,1132,1131,1130,1129,1102,0000,0000,0000,0000,0000,0000,0000,0000},
        {
5751177,1176,1175,1174,1099,1044,1043,1042,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000},
        {
5761193,1192,1191,1190,1137,1136,1135,1134,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000},
        {
5801023,1020,1018,1017,1007,1006,1001,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000},
        {
5891145,1144,1024,1020,1018,1017,1016,1013,1007,1006,1005,1004,1000,0000,0000,0000,0000,0000},
        {
6001022,1020,1018,1017,1013,1007,1006,1005,1004,0000,0000,0000,0000,0000,0000,0000,0000,0000},
        {
6031145,1144,1143,1142,1024,1023,1020,1019,1018,1017,1007,1006,1001,0000,0000,0000,0000,0000}
    };

iswheelmodel(modelid) {
    new 
wheelmodels[17] = {1025,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1096,1097,1098};
    for(new 
wmwm sizeof(wheelmodels); wm++) {
        if (
modelid == wheelmodels[wm])
            return 
true;
    }
    return 
false;
}

IllegalCarNitroIde(carmodel) {
    new 
illegalvehs[29] = { 581523462521463522461448468586509481510472473493595484430453452446454590569537538570449 };
    for(new 
iviv sizeof(illegalvehs); iv++) {
        if (
carmodel == illegalvehs[iv])
            return 
true;
    }
    return 
false;
}

stock islegalcarmod(vehicleidecomponentid) {
    new 
modok false;
    if ( (
iswheelmodel(componentid)) || (componentid == 1086) || (componentid == 1087) || ((componentid >= 1008) && (componentid <= 1010))) {
        new 
nosblocker IllegalCarNitroIde(vehicleide);
        if (!
nosblocker)
            
modok true;
    } else {
        for(new 
lmlm sizeof(legalmods); lm++) {
            if (
legalmods[lm][0] == vehicleide) {
                for(new 
122J++) {
                    if (
legalmods[lm][J] == componentid)
                        
modok true;
                }
            }
        }
    }
    return 
modok;
}

public 
OnVehicleMod(playeridvehicleidcomponentid) {
    new 
vehicleide GetVehicleModel(vehicleid);
    new 
modok islegalcarmod(vehicleidecomponentid);
    new 
name[24];
    
GetPlayerName(playeridname24);
    new 
string[128];
    if (!
modok) {
        if(
warned[playerid] == 0) {
            
printf("[invalid_mod - WARNING] %s %d %d %d %d %d"nameplayeridvehicleidvehicleidecomponentid);
            
DestroyVehicle(vehicleid);
            
warned[playerid] = 1;
        } else {
            
DestroyVehicle(vehicleid);
            
format(stringsizeof(string), "{F97804}SERVER: {FFFFFF}%s[%d] has been kicked for vehicle modification cheats."nameplayerid);
            
SendClientMessageToAll(0xFFFFFFFFstring);
            
Kick(playerid);
        }
        return 
0;
    }
    return 
1;

Reply
#5

RakSamp[PRO] 3e nova version, feito pra detona svs.. esse deve ser seu problema.. tente fazer um pequeno code
pawn Код:
false
cmds desse program como !lag !kill etc.. vo fazer aki e do edit@ postando..
Reply
#6

eu usei no onplayertext, se o cara digitar ikill, ilag, ispan ele e banido!
Reply
#7

Cara, existe um plugin do BrunoSilva que checa dentro da pasta do GTA do player se existe tal arquivo..
Fale com ele e use o plugin para checar se existe algum arquivo do ****** na pasta do mesmo.

@OFF Saldades de ti poota
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)