03.07.2013, 06:51
I've tested this in my server, and I tried it with So.....
For some reason it won't detect the component being attached to the car to even ban me. Is there anyway this can be attached to client side to detect its attachments?
For some reason it won't detect the component being attached to the car to even ban me. Is there anyway this can be attached to client side to detect its attachments?
pawn Код:
public OnVehicleMod(playerid, vehicleid, componentid)
{
new str[256];
new ID;
new currentveh;
currentveh = GetPlayerVehicleID(playerid);
if(GetPlayerInterior(playerid) == 0)
{
SendClientMessage(playerid,COLOR_WHITE,"{CC0000}[NOTICE] {FFFFFF}You've been banned from the server. Reason: Tune Hacks.");
format(str,sizeof(str),"{B30000}[SERVER] {FFFFFF}%s[%d] has banned from the server. (Tune Hacks).",playerid,PlayerName(ID));
SendClientMessageToAll(0x33AA33AA,str);
BanEx(playerid, "Tune Hack");
DestroyVehicle(currentveh);
}
return 1;
}