21.01.2013, 10:37
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;
}