Crash problem(Help) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Crash problem(Help) (
/showthread.php?tid=409334)
Crash problem(Help) -
HavingGood - 21.01.2013
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..
AW: Crash problem(Help) -
Blackazur - 21.01.2013
Try the crashdetect Plugin and copy what it says in the Server-Log.
Re: Crash problem(Help) -
DaRk_RaiN - 21.01.2013
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;
}
Re: Crash problem(Help) -
HavingGood - 21.01.2013
Lol man thanks !