Crash problem(Help)
#1

Hi all,
People crash my server, It's be a tiring.


I have one script this is he:

Код:
public OnVehicleMod(playerid,vehicleid,componentid)
{
    if(GetPlayerInterior(playerid) == 0)
    {
        SendClientMessage(playerid, 0x33AA33AA, "You Are banned for Car Tuning hacks!");
        format(str,sizeof(str),"%s has banned for server Reason: Car tuning hacks!",GetName(playerid));
        SendClientMessageToAll(0x33AA33AA,str);
        BanEx(playerid, "Car Tuning Hacks");
    }
    return 1;
}
stock GetName(playerid)
{
    new name[MAX_PLAYER_NAME];
    if(IsPlayerConnected(playerid))
    {
                GetPlayerName(playerid, name, sizeof(name));
        }
        else
        {
            name = "Unknown";
        }
        return name;
}
But it is not optimal, Script ban in the tuning. Do someone have a crash security script?

Help Please..
Reply
#2

Try the crashdetect Plugin and copy what it says in the Server-Log.
Reply
#3

Try this
pawn Код:
stock Name(playerid)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    return name;
}
public OnVehicleMod(playerid,vehicleid,componentid)
{
    if(GetPlayerInterior(playerid) == 0)
    {
        SendClientMessage(playerid, 0x33AA33AA, "You Are banned for Car Tuning hacks!");
        format(str,sizeof(str),"%s has banned for server Reason: Car tuning hacks!",Name(playerid));
        SendClientMessageToAll(0x33AA33AA,str);
        BanEx(playerid, "Car Tuning Hacks");
    }
    return 1;
}
Reply
#4

Lol man thanks !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)